iot-firmware/lib/ITEADLIB_Arduino_Nextion-ma...
Siwat Sirichai 6ccbc32911 external nextion display example 2023-09-30 16:29:16 +07:00
..
doc nextion 2023-09-30 15:42:44 +07:00
examples nextion 2023-09-30 15:42:44 +07:00
html nextion 2023-09-30 15:42:44 +07:00
latex nextion 2023-09-30 15:42:44 +07:00
NexButton.cpp nextion 2023-09-30 15:42:44 +07:00
NexButton.h nextion 2023-09-30 15:42:44 +07:00
NexCheckbox.cpp nextion 2023-09-30 15:42:44 +07:00
NexCheckbox.h nextion 2023-09-30 15:42:44 +07:00
NexConfig.h nextion 2023-09-30 15:42:44 +07:00
NexCrop.cpp nextion 2023-09-30 15:42:44 +07:00
NexCrop.h nextion 2023-09-30 15:42:44 +07:00
NexDualStateButton.cpp nextion 2023-09-30 15:42:44 +07:00
NexDualStateButton.h nextion 2023-09-30 15:42:44 +07:00
NexGauge.cpp nextion 2023-09-30 15:42:44 +07:00
NexGauge.h nextion 2023-09-30 15:42:44 +07:00
NexGpio.cpp nextion 2023-09-30 15:42:44 +07:00
NexGpio.h nextion 2023-09-30 15:42:44 +07:00
NexHardware.cpp external nextion display example 2023-09-30 16:29:16 +07:00
NexHardware.h nextion 2023-09-30 15:42:44 +07:00
NexHotspot.cpp nextion 2023-09-30 15:42:44 +07:00
NexHotspot.h nextion 2023-09-30 15:42:44 +07:00
NexNumber.cpp nextion 2023-09-30 15:42:44 +07:00
NexNumber.h nextion 2023-09-30 15:42:44 +07:00
NexObject.cpp nextion 2023-09-30 15:42:44 +07:00
NexObject.h nextion 2023-09-30 15:42:44 +07:00
NexPage.cpp nextion 2023-09-30 15:42:44 +07:00
NexPage.h nextion 2023-09-30 15:42:44 +07:00
NexPicture.cpp nextion 2023-09-30 15:42:44 +07:00
NexPicture.h nextion 2023-09-30 15:42:44 +07:00
NexProgressBar.cpp nextion 2023-09-30 15:42:44 +07:00
NexProgressBar.h nextion 2023-09-30 15:42:44 +07:00
NexRadio.cpp nextion 2023-09-30 15:42:44 +07:00
NexRadio.h nextion 2023-09-30 15:42:44 +07:00
NexRtc.cpp nextion 2023-09-30 15:42:44 +07:00
NexRtc.h nextion 2023-09-30 15:42:44 +07:00
NexScrolltext.cpp nextion 2023-09-30 15:42:44 +07:00
NexScrolltext.h nextion 2023-09-30 15:42:44 +07:00
NexSlider.cpp nextion 2023-09-30 15:42:44 +07:00
NexSlider.h nextion 2023-09-30 15:42:44 +07:00
NexText.cpp nextion 2023-09-30 15:42:44 +07:00
NexText.h nextion 2023-09-30 15:42:44 +07:00
NexTimer.cpp nextion 2023-09-30 15:42:44 +07:00
NexTimer.h nextion 2023-09-30 15:42:44 +07:00
NexTouch.cpp nextion 2023-09-30 15:42:44 +07:00
NexTouch.h nextion 2023-09-30 15:42:44 +07:00
NexUpload.cpp.d nextion 2023-09-30 15:42:44 +07:00
NexUpload.h.d nextion 2023-09-30 15:42:44 +07:00
NexVariable.cpp nextion 2023-09-30 15:42:44 +07:00
NexVariable.h nextion 2023-09-30 15:42:44 +07:00
NexWaveform.cpp nextion 2023-09-30 15:42:44 +07:00
NexWaveform.h nextion 2023-09-30 15:42:44 +07:00
Nextion.h nextion 2023-09-30 15:42:44 +07:00
doxygen.doxy nextion 2023-09-30 15:42:44 +07:00
doxygen.h nextion 2023-09-30 15:42:44 +07:00
license.md nextion 2023-09-30 15:42:44 +07:00
readme.md nextion 2023-09-30 15:42:44 +07:00
release_notes.md nextion 2023-09-30 15:42:44 +07:00
version.txt nextion 2023-09-30 15:42:44 +07:00

readme.md

@mainpage Home Page

Nextion


Introduction

Nextion Arduino library provides an easy-to-use way to manipulate Nextion serial displays. Users can use the libarry freely, either in commerical projects or open-source prjects, without any additional condiitons.

For more information about the Nextion display project, please visit the wiki。
The wiki provdies all the necessary technical documnets, quick start guide, tutorials, demos, as well as some useful resources.

To get your Nextion display, please visit iMall.

To discuss the project? Request new features? Report a BUG? please visit the Forums

Download Source Code

Latest version is unstable and a mass of change may be applied in a short time without any notification for users. Commonly, it is for developers of this library.

Release version is recommanded for you, unless you are one of developers of this library.

Release notes is at https://github.com/itead/ITEADLIB_Arduino_Nextion/blob/master/release_notes.md.

Latest(unstable)

Latest source code(master branch) can be downloaded: https://github.com/itead/ITEADLIB_Arduino_Nextion/archive/master.zip.

You can also clone it via git:

git clone https://github.com/itead/ITEADLIB_Arduino_Nextion

Releases(stable)

All releases can be available from: https://github.com/itead/ITEADLIB_Arduino_Nextion/releases.

Documentation

Offline Documentation's entry doc/Documentation/index.html shiped with source code can be open in your browser such as Chrome, Firefox or any one you like.

Suppported Mainboards

All boards, which has one or more hardware serial, can be supported.

For example:

  • Iteaduino MEGA2560
  • Iteaduino UNO
  • Arduino MEGA2560
  • Arduino UNO

Configuration

In configuration file NexConfig.h, you can find two macros below:

  • dbSerial: Debug Serial (baudrate:9600), needed by beginners for debug your nextion applications or sketches. If your complete your work, it will be a wise choice to disable Debug Serial.

  • nexSerial: Nextion Serial, the bridge of Nextion and your mainboard.

Note: the default configuration is for MEGA2560.

Redirect dbSerial and nexSerial

If you want to change the default serial to debug or communicate with Nextion , you need to modify the line in configuration file:

#define dbSerial Serial    ---> #define dbSerial Serialxxx
#define nexSerial Serial2  ---> #define nexSeria Serialxxx

Disable Debug Serial

If you want to disable the debug information,you need to modify the line in configuration file:

#define DEBUG_SERIAL_ENABLE ---> //#define DEBUG_SERIAL_ENABLE

UNO-like Mainboards

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).

Useful Links

http://blog.iteadstudio.com/nextion-tutorial-based-on-nextion-arduino-library/

License


The MIT License (MIT) 

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.