Project

General

Profile

Nextion » History » Revision 3

Revision 2 (Frédéric Blanc, 2022-01-20 15:26) → Revision 3/5 (Frédéric Blanc, 2022-01-20 15:30)

h1. Nextion 

 

 h2. Lib 

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

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

 platformio.ini 
 <pre><code> 
 [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></pre> 


 

 h2. Code 

 !clipboard-202201201522-uofla.png! 
 NexPage ( uint8_t pid, uint8_t cid, const char * name) 
 page CID is always zero!  
	
 <pre><code class="cpp"> 
 #include <Arduino.h> 
 #include "Nextion.h" 
 NexPage p0 = NexPage(0,0,"page0"); 
 NexPage p1 = NexPage(1,0,"page1"); 
 ... 
 p1.show(); 
 ... 
 </code></pre>