Библиотека https://github.com/bborncr/nextion Пытаюсь скомпилировать код Код (C++): /* Ricardo Mena C ricardo@crcibernetica.com http://crcibernetica.com This example code is in public domain */ #include <SoftwareSerial.h> #include <Nextion.h> SoftwareSerial nextion(2, 3);// Nextion TX to pin 2 and RX to pin 3 of Arduino Nextion myNextion(nextion, 9600); //create a Nextion object named myNextion using the nextion serial port @ 9600bps void setup() { Serial.begin(9600); myNextion.init(); } void loop() { String message = myNextion.listen(); //check for message if(message != ""){ // if a message is received... Serial.println(message); //...print it out } } Получаю C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:235:9: error: exponent has no digits C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp: In member function 'String Nextion::listen(long unsigned int)': C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:226: error: expected primary-expression before '<<' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:226: error: expected primary-expression before '<<' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:226: error: expected primary-expression before '<<' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:226: error: expected primary-expression before '<' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:226: error: 'HEAD' was not declared in this scope C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:234: error: expected primary-expression before '==' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:234: error: expected primary-expression before '==' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:234: error: expected primary-expression before '=' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:235: error: expected primary-expression before '>>' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:235: error: expected primary-expression before '>>' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:235: error: expected primary-expression before '>>' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:235: error: expected primary-expression before '>' token C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:236: error: expected `;' before 'String' C:\Users\DIMKA\Documents\Arduino\libraries\Nextion\Nextion.cpp:242: error: 'temp' was not declared in this scope
а в библиотеку заглянуть и увидеть там такое ? Код (C++): ... if(countEnd == 3){ break; }//end if }//end if }//end while <<<<<<< HEAD /* if(cmd != ""){ for(int o = 0 ; o < cmd.length(); o++){ Serial.print(cmd[o], HEX); } Serial.println(); }//*/ ======= >>>>>>> 4ecc8e6778707d477938b3f5a74f648bf0781185 String temp = "";....
я так понял вы балуетесь с HMI. а что мешало взять нормальные библиотеки от распространителя, а не от самопальщика? https://github.com/itead/ITEADLIB_Arduino_Nextion