Project

General

Profile

Actions

Nextion

Lib

https://github.com/itead/ITEADLIB_Arduino_Nextion/archive/master.zip

https://randomnerdtutorials.com/nextion-display-with-arduino-getting-started/

ajouter cette lib en plus (esp32 et esp8266)
https://github.com/plerup/espsoftwareserial/

pour eviter l'erreur SPI.h: No such file or directory rajouter la ligne lib_ldf_mode = deep+ dans platformio.ini

platformio.ini


[env:wemos_d1_mini32]
platform = espressif32
board = wemos_d1_mini32
framework = arduino
lib_ldf_mode = deep+
upload_port = COM[4]
; Serial Monitor options
monitor_speed = 115200

Code


NexPage ( uint8_t pid, uint8_t cid, const char * name)
page CID is always zero!

#include <Arduino.h>
#include "Nextion.h" 
NexPage p0 = NexPage(0,0,"page0");
NexPage p1 = NexPage(1,0,"page1");
...
p1.show();
...

Updated by Frédéric Blanc over 2 years ago · 5 revisions