Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Nextion library, how to install in Visual Micro (Read 162 times)
LarryG
Newbies
*
Offline



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



Posts: 10935
United Kingdom
Re: Nextion library, how to install in Visual Micro
Reply #1 - Jan 5th, 2021 at 5:20pm
 
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
 

Tim Leek
home
WWW  
IP Logged
 
LarryG
Newbies
*
Offline



Posts: 3
Re: Nextion library, how to install in Visual Micro
Reply #2 - Jan 5th, 2021 at 7:00pm
 
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: 10935
United Kingdom
Re: Nextion library, how to install in Visual Micro
Reply #3 - Jan 5th, 2021 at 7:55pm
 
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.
Back to top
« Last Edit: Jan 5th, 2021 at 7:57pm by Tim@Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
LarryG
Newbies
*
Offline



Posts: 3
Re: Nextion library, how to install in Visual Micro
Reply #4 - Jan 6th, 2021 at 2:01am
 
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: 10935
United Kingdom
Re: Nextion library, how to install in Visual Micro
Reply #5 - Jan 6th, 2021 at 2:22am
 
Great, thanks for the update.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print