Start a new topic

nextion for arduino dosent work

I'm trying to get nextion library to work on my arduino mega.

but I can not be allowed to upload an example to Arduino.


using the CompPage exsample.


i get this error message:


Arduino: 1.6.8 (Windows 7), Board: "Arduino Nano, ATmega328"

CompPage:3: error: 'NexPage' does not name a type

 NexPage page0 = NexPage(0, 0, "page0");

 ^

CompPage:4: error: 'NexPage' does not name a type

 NexPage page1 = NexPage(1, 0, "page1");

 ^

CompPage:5: error: 'NexPage' does not name a type

 NexPage page2 = NexPage(2, 0, "page2");

 ^

CompPage:6: error: 'NexPage' does not name a type

 NexPage page3 = NexPage(3, 0, "page3");

 ^

CompPage:8: error: 'NexTouch' does not name a type

 NexTouch *nex_listen_list[] =

 ^

C:\Users\Uno\Desktop\ITEADLIB_Arduino_Nextion-master\examples\CompPage\CompPage.ino: In function 'void page0PopCallback(void*)':

CompPage:19: error: 'dbSerialPrintln' was not declared in this scope

     dbSerialPrintln("page0PopCallback");

                                       ^

CompPage:20: error: 'page1' was not declared in this scope

     page1.show();

     ^

C:\Users\Uno\Desktop\ITEADLIB_Arduino_Nextion-master\examples\CompPage\CompPage.ino: In function 'void page1PopCallback(void*)':

CompPage:25: error: 'dbSerialPrintln' was not declared in this scope

     dbSerialPrintln("page1PopCallback");

                                       ^

CompPage:26: error: 'page2' was not declared in this scope

     page2.show();

     ^

C:\Users\Uno\Desktop\ITEADLIB_Arduino_Nextion-master\examples\CompPage\CompPage.ino: In function 'void page2PopCallback(void*)':

CompPage:31: error: 'dbSerialPrintln' was not declared in this scope

     dbSerialPrintln("page2PopCallback");

                                       ^

CompPage:32: error: 'page3' was not declared in this scope

     page3.show();

     ^

C:\Users\Uno\Desktop\ITEADLIB_Arduino_Nextion-master\examples\CompPage\CompPage.ino: In function 'void page3PopCallback(void*)':

CompPage:37: error: 'dbSerialPrintln' was not declared in this scope

     dbSerialPrintln("page3PopCallback");

                                       ^

CompPage:38: error: 'page0' was not declared in this scope

     page0.show();

     ^

C:\Users\Uno\Desktop\ITEADLIB_Arduino_Nextion-master\examples\CompPage\CompPage.ino: In function 'void setup()':

CompPage:43: error: 'nexInit' was not declared in this scope

     nexInit();

             ^

CompPage:44: error: 'dbSerialPrintln' was not declared in this scope

     dbSerialPrintln("setup begin");

                                  ^

CompPage:46: error: 'page0' was not declared in this scope

     page0.attachPop(page0PopCallback);

     ^

CompPage:47: error: 'page1' was not declared in this scope

     page1.attachPop(page1PopCallback);

     ^

CompPage:48: error: 'page2' was not declared in this scope

     page2.attachPop(page2PopCallback);

     ^

CompPage:49: error: 'page3' was not declared in this scope

     page3.attachPop(page3PopCallback);

     ^

C:\Users\Uno\Desktop\ITEADLIB_Arduino_Nextion-master\examples\CompPage\CompPage.ino: In function 'void loop()':

CompPage:56: error: 'nex_listen_list' was not declared in this scope

     nexLoop(nex_listen_list);

             ^

CompPage:56: error: 'nexLoop' was not declared in this scope

     nexLoop(nex_listen_list);

                            ^

Multiple libraries were found for "Nextion.h"

 Used: C:\Users\Uno\Documents\Arduino\libraries\NeoNextion

 Not used: C:\Users\Uno\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master

 Not used: C:\Program Files (x86)\Arduino\libraries\ITEADLIB_Arduino_Nextion-0.7.0

exit status 1

'NexPage' does not name a type

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.



1 Comment

And ...  was there a question?


Or is this a demonstration of why you don't want to have three conflicting libraries installed and the results that happen when you do?  Good demo.

Login or Signup to post a comment