Nextion Display

I’m using a Nextion Display with a Particle Photon. I have the TX, RX connections wired correctly, I can get data from the display, and I can send data to change button text, but none of the callbacks seem to work.

I’ve even erased all of my code and used the sample from the Library section in Particle Web IDE, and it did not work either.

Has anyone else ran into this issue before?

Wow, I feel like an idiot, I finally figured it out…

I was calling attachPop() for registering the callback from the button push. The problem is, in the Nextion GUI Editor, I wasn’t sending the Touch Release Event, I am sending the Touch Press Event… So I should have registered a callback using attachPush() instead of attachPop().

1 Like

I’m a fan of the Nextion displays. I don’t use the touchscreen part, just the display part.

3 Likes

Hi Rick,
I was wondering if you had posted somewhere the code of your nextion and photon to get what you are showing in the picture.
In that case, can you provide pointers to it by any chance?
Thanks!

1 Like

I have never posted anything about it, other than the picture.

It’s a good idea, but fairly involved as there’s a server component that gathers all of the data and relays it to the displays, the software on the display controller Photon that talks to the Nextion display, and the custom PCB. It would make a good tutorial or blog post, though. I’ll make a note the do that.

3 Likes

I’d be interested in even a gist of this, if at all possible.
Thanks!