12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
-
-
-
-
-
-
-
-
-
- #include "EasyNextionLibrary.h"
-
-
- EasyNex myNex(Serial);
-
- const int REFRESH_TIME = 1000;
- unsigned long refresh_timer = millis();
-
- String stringFromNextion;
- void setup(){
- myNex.begin(9600);
-
-
- }
- void loop(){
- myNex.NextionListen();
-
-
- if((millis() - refresh_timer) > REFRESH_TIME){
-
-
- stringFromNextion = myNex.readStr("t0.txt");
- myNex.writeStr("t1.txt",stringFromNextion);
-
- refresh_timer = millis();
-
- }
-
- }
|