Start a new topic
Solved

Arduino IDE 1.6.6

We have some problem with arduino IDE 1.6.6 and last Nextion library.

My project need the arduino Yun and all IDE yun compatible version, show me some error in the library.

Have you in calendar the point to resolve this ?


Thank you


I'm having the same problem too. Library troubled .

if it is asked for help for a problem sketch AND the error needs. be sent!

otherwise there can be no sensible answer. by Itead or forum members

Greeting

Vic

We have the error in the sketch, and I need to resolve the problem for a my important project.

I need conect the arduino yun with dysplay control any sensor e send the data to a server farm.


Thank you

some error example ;



C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:235:9: error: exponent has no digits

 >>>>>>> 4ecc8e6778707d477938b3f5a74f648bf0781185

         ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp: In member function 'unsigned int Nextion::getComponentValue(String)':

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:131:25: warning: left shift count >= width of type [enabled by default]

     value = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]);//Little-endian convertion

                         ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:131:43: warning: left shift count >= width of type [enabled by default]

     value = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]);//Little-endian convertion

                                           ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp: In member function 'String Nextion::listen(long unsigned int)':

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:226:1: error: expected primary-expression before '<<' token

 <<<<<<< HEAD

 ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:226:3: error: expected primary-expression before '<<' token

 <<<<<<< HEAD

   ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:226:5: error: expected primary-expression before '<<' token

 <<<<<<< HEAD

     ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:226:7: error: expected primary-expression before '<' token

 <<<<<<< HEAD

       ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:226:9: error: 'HEAD' was not declared in this scope

 <<<<<<< HEAD

         ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:234:3: error: expected primary-expression before '==' token

 =======

   ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:234:5: error: expected primary-expression before '==' token

 =======

     ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:234:7: error: expected primary-expression before '=' token

 =======

       ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:235:1: error: expected primary-expression before '>>' token

 >>>>>>> 4ecc8e6778707d477938b3f5a74f648bf0781185

 ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:235:3: error: expected primary-expression before '>>' token

 >>>>>>> 4ecc8e6778707d477938b3f5a74f648bf0781185

   ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:235:5: error: expected primary-expression before '>>' token

 >>>>>>> 4ecc8e6778707d477938b3f5a74f648bf0781185

     ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:235:7: error: expected primary-expression before '>' token

 >>>>>>> 4ecc8e6778707d477938b3f5a74f648bf0781185

       ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:236:3: error: expected ';' before 'String'

   String temp = "";

   ^

C:\Users\Fatih Mehmet Erşan\Documents\Arduino\libraries\nextion-master\Nextion.cpp:242:4: error: 'temp' was not declared in this scope

    temp += String(cmd[i], HEX);//add hexadecimal value

    ^

exit status 1


1 person likes this

Hi Fatih,

This is a Arduino error message. The up arrow indicates where the error is. This can be a wrong value. write fout.ik would ask this question arduino.cc the urbanization and you can do it in your own language.

pose an open question (and not: this is wrong -> YES) :-)

Upload these error messages and you sketch

greeting,

vic


this is the error, that ude show me in compiled step.

I used the example sketch compButton.


In file included from C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.h:18:0,

                 from C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:15:

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp: In function 'bool recvRetNumber(uint32_t*, uint32_t)':

C:\test\arduino-1.6.6\libraries\Nextion\NexConfig.h:37:19: error: 'Serial2' was not declared in this scope

 #define nexSerial Serial2

                   ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:55:5: note: in expansion of macro 'nexSerial'

     nexSerial.setTimeout(timeout);

     ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:67:31: warning: left shift count >= width of type [enabled by default]

         *number = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]);

                               ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:67:49: warning: left shift count >= width of type [enabled by default]

         *number = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]);

                                                 ^

In file included from C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.h:18:0,

                 from C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:15:

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp: In function 'uint16_t recvRetString(char*, uint16_t, uint32_t)':

C:\test\arduino-1.6.6\libraries\Nextion\NexConfig.h:37:19: error: 'Serial2' was not declared in this scope

 #define nexSerial Serial2

                   ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:114:16: note: in expansion of macro 'nexSerial'

         while (nexSerial.available())

                ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp: In function 'void sendCommand(const char*)':

C:\test\arduino-1.6.6\libraries\Nextion\NexConfig.h:37:19: error: 'Serial2' was not declared in this scope

 #define nexSerial Serial2

                   ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:166:12: note: in expansion of macro 'nexSerial'

     while (nexSerial.available())

            ^

C:\test\arduino-1.6.6\libraries\Nextion\NexConfig.h:37:19: error: 'Serial2' was not declared in this scope

 #define nexSerial Serial2

                   ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:171:5: note: in expansion of macro 'nexSerial'

     nexSerial.print(cmd);

     ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp: In function 'bool recvRetCommandFinished(uint32_t)':

C:\test\arduino-1.6.6\libraries\Nextion\NexConfig.h:37:19: error: 'Serial2' was not declared in this scope

 #define nexSerial Serial2

                   ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:192:5: note: in expansion of macro 'nexSerial'

     nexSerial.setTimeout(timeout);

     ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp: In function 'bool nexInit()':

C:\test\arduino-1.6.6\libraries\Nextion\NexConfig.h:37:19: error: 'Serial2' was not declared in this scope

 #define nexSerial Serial2

                   ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:226:5: note: in expansion of macro 'nexSerial'

     nexSerial.begin(9600);

     ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp: In function 'void nexLoop(NexTouch**)':

C:\test\arduino-1.6.6\libraries\Nextion\NexConfig.h:37:19: error: 'Serial2' was not declared in this scope

 #define nexSerial Serial2

                   ^

C:\test\arduino-1.6.6\libraries\Nextion\NexHardware.cpp:242:12: note: in expansion of macro 'nexSerial'

     while (nexSerial.available() > 0)

            ^

exit status 1

Errore durante la compilazione

  Questo report potrebbe essere più ricco di informazioni con

  "Mostra un output dettagliato durante la compilazione"

  abilitato in "File > Impostazioni"


Hi Stefano,

I think the YUN 1 serial port

#define nexSerial Serial2 only sketch it on to -> #define nexSerial Serial1.

I ran against this with an Ethernet board.

greeting Vic

Nextion screen requires 2 Serial ports.


Uno has only 1 serial port, so the screen will not work.

Yun, as Vic said has Serial and Serial1, so if you change the define statement from Serial2 to Serial1, it will work.


But Uno will not work. You can get though an Arduino Mega that has 4 serial ports.

Correction Uno does work fine too, you just need to disable serial debugging:


Here is it:


If your board has only one hardware serial, such as UNO, you should disable dbSerial and redirect nexSerial to Serial(Refer to section:Serial configuration).


From: https://github.com/itead/ITEADLIB_Arduino_Nextion

I will apologize for any past delays in receiving responses.


The ITEADLIB is being worked on as an ongoing process and provided as some semblance of an example. Although the ITEADLIB was released, official support is limited to Level 2 to ensure the Nextion hardware works.


Coding questions and techniques should be posted in the Free Chat section where other users can try to assist with any Arduino related items (of which, you will see we try to assist where we can as well)


As this is not a Nextion Editor bug or a Nextion device bug, this topic will be marked as closed.