i have tryed an easy Programm with the Nextion TFT. Time and Date are shown on the Start Display. Changing to my PowerLED submenu works fine too.
But the button for turning it on and off doesn´t work. It will not change the text from the word "An" to "Aus", when i touch it. My Programm is very small, so is there anybody out there who could take a look? I checked everything and tried for hours to make it run, but nothing will help.
I attached the .ino an the .hmi file. So everything i did should be visible.
Thanks a lot for your help!
NexText Time = NexText(0, 2 ,"Time");
NexText Date = NexText(0, 3 ,"Date");
NexButton LEDbutton = NexButton(2, 11, "LEDbutton");
NexTouch *nexListenList =
snprintf(buffer, 100, "%02d:%02d:%02d",hour(),minute(),second());
snprintf(buffer, 100, "%02d.%02d.%d",day(),month(),year());
void LEDbuttonPopCallback(void *ptr)
NexButton *btn = (NexButton *)ptr;
memset(buffer, 0, sizeof(buffer));