A Python library for Nextion smart display management
Source: http://wiki.iteadstudio.com/Nextion_Instruction_Set
To use a Nextion intelligent display you need:
- a USB TTL converter (such as those using Prolific PL2303 chip
- or a computer with TTL output such as Rasperry Pi but probably many others single-board computers (SBC) with Universal asynchronous receiver-transmitter (UART).
Please follow the following wiring:
- Red wire 5V
- Black wire GND
- Yellow wire (between Nextion RX and USB TTL TX or SBC TX)
- Blue wire (between Nextion TX and USB TTL RX or SBC RX)
!!! warning
Do it at your own *risk*!
Bad wiring can result in damaging the Nextion display, the USB converter or maybe more.
If you don't know what you are doing, it's maybe safer not to try!
$ pytest -s tests
$ pytest -s examples/draw.py
Default port is /dev/ttyUSB0
and is set in examples/config.py
.
- https://github.com/python-nextion/pynextion (and forks)