Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Nextion library, how to install in Visual Micro (Read 3900 times)
LarryG
Newbies
*
Offline


Posts: 3
Joined: Jan 31st, 2020
Nextion library, how to install in Visual Micro
Jan 5th, 2021 at 6:41am
Print Post  
Has anyone documented how to integrate the Nextion library into VM?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Nextion library, how to install in Visual Micro
Reply #1 - Jan 5th, 2021 at 5:20pm
Print Post  
Hi

Visual Micro is compatible with the Arduino Framework and supports same configuration as the Arduino IDE. Is this the library?

https://www.arduino.cc/reference/en/libraries/easy-nextion-library/

  
Back to top
IP Logged
 
LarryG
Newbies
*
Offline


Posts: 3
Joined: Jan 31st, 2020
Re: Nextion library, how to install in Visual Micro
Reply #2 - Jan 5th, 2021 at 7:00pm
Print Post  
Thank you for the reply.

Yes, using the Arduino.cc library manager, I installed Easy Nextion Library ver. 1.0.5, then performed a refresh in the Visual Micro Explorer / Manage Libraries.   

(This may be moot.  See below)
I then tested by adding the Nextion NexButton() function statement to my code.  upon compilation, I received the error message, 
ScintillatorMonitor.ino: 17:23: fatal error: NexButton.h: No such file or directory
   #include "NexButton.h"

I then found the library:  "ITEADLIB_Arduino_Nextion-0.7.0" which contains NexButton.h, etc, and added to the other libraries in:   C:\Program Files (x86)\Arduino\libraries

Now, NexButton.h is found and the Build is successful. 
(However, I don't know if these functions will be needed)

I understand that The Easy Nextion Library contains the four (or five) basic functions for serial comm. as described here:
https://github.com/Seithan/EasyNextionLibrary

However, as per the example code I added: 

#include "EasyNextionLibrary.h"  // Include EasyNextionLibrary

And I added the class:  EasyNex myNex(Serial);

so now, statements like:
myNex.writeNum("b0.bco", 2016);

compiles OK.

I have not yet written actual code to communicate with the Nextion display via. the DUE's serial lines.  I will now attempt to do so. 

Now, I should be able to use these 4 or 5 basic serial comm. functions.   

The functions in the: ITEADLIB_Arduino_Nextion-0.7.0

like:  NexButton()  may not be needed.

Please excuse the apparent confusion.






 



  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Nextion library, how to install in Visual Micro
Reply #3 - Jan 5th, 2021 at 7:55pm
Print Post  
Thanks but please do follow the guide in yellow above when posting to the forum. It shows us your config, which libs you have installed and what options you have switched on or off.

Other tips: suggest use chevrons when referencing files that not in the project <> instead of double quotes "". 

#include <myLib.h>

#include "src/local-stuff/mycode.h"

The libraries also often come with examples that should work without change. If a library depends on another library that should be reported in the deep search unless you have switched it off.
« Last Edit: Jan 5th, 2021 at 7:57pm by Tim@Visual Micro »  
Back to top
IP Logged
 
LarryG
Newbies
*
Offline


Posts: 3
Joined: Jan 31st, 2020
Re: Nextion library, how to install in Visual Micro
Reply #4 - Jan 6th, 2021 at 2:01am
Print Post  
OK, Thank you on instructions. 
 
Yes, I do use <> chevrons for include files but I pasted in an example from a tutorial which used quotes, which did take my attention.   

Making progress...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Nextion library, how to install in Visual Micro
Reply #5 - Jan 6th, 2021 at 2:22am
Print Post  
Great, thanks for the update.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint