Nextion Serial Displays
Nextion Arduino library provides an easy-to-use way to manipulate Nextion serial displays. Users can use the libarry freely, either in commercial projects or open-source prjects, without any additional condiitons.
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 recommended 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 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
All releases can be available from: https://github.com/itead/ITEADLIB_Arduino_Nextion/releases.
Offline Documentation’s entry
with source code can be open in your browser such as Chrome, Firefox or
any one you like.
All boards, which has one or more hardware serial, can be supported.
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
If your board has only one hardware serial, such as UNO, you should
disable dbSerial and redirect nexSerial to Serial(Refer to
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.
Nextion Button Sample