Seithan / EasyNextionLibrary

A simple library for Nextion display that uses only four functions. You can easily benefit from Nextion's wide range of features and advantages in just a few easy steps. The library uses a custom protocol that can prove to be a powerful tool for advanced users as it can be easily modified to meet one’s needs.
MIT License
116 stars 29 forks source link

No Tx/Rx communication I don't know why? #58

Closed 18Markus1984 closed 1 year ago

18Markus1984 commented 1 year ago

I'm trying to get the libaray to work on a ESPNodeMCU. After reading that it may no work(it didn't worked) I switched to an arduino uno to try to find any working way. I'm now testing and reading for 2 hours and not finding anything working. I'm using an NX3224K024_011 Display.

I connected the rx/tx to the rx and tx pin(1,0) on the arduino. I switched everything multible times.

On the display I'm triggering a printh after entering a page: grafik

Here is my code I'm trying to use

include "EasyNextionLibrary.h"

EasyNex myNex(Serial); void setup() { myNex.begin(9600); } void loop() { myNex.NextionListen(); } //Schneidefunction für das Display wird erst aufgerufen der Abfrage zugestimmt wird void trigger0() { for(int i = 0; i<= 100; i++) { myNex.writeNum("j0.val", i); delay(500); } int schneiden[] = {0,0,0,0}; //anzahl, länge, isolation1, isolation2 //Auslesen der Daten der entsprechenden Elemente schneiden[0] = myNex.readNumber("count.val"); schneiden[1] = myNex.readNumber("leng.val"); schneiden[2] = myNex.readNumber("iso1.val"); schneiden[3] = myNex.readNumber("iso2.val"); }

I'd would be pretty nice to find a solution

18Markus1984 commented 1 year ago

I think it is working now. The only thing I should have added was a delay in the loop :/

18Markus1984 commented 1 year ago

And for all the luck I got the NodeMCU is also working