Project

General

Profile

Nextion » History » Version 4

Frédéric Blanc, 2022-01-20 15:34

1 1 Frédéric Blanc
h1. Nextion
2
3
h2. Lib
4
5 3 Frédéric Blanc
https://github.com/itead/ITEADLIB_Arduino_Nextion/archive/master.zip
6
7
https://randomnerdtutorials.com/nextion-display-with-arduino-getting-started/
8
9 4 Frédéric Blanc
ajouter cette lib en plus (esp32 et esp8266)
10
https://github.com/plerup/espsoftwareserial/
11
12 3 Frédéric Blanc
platformio.ini
13
<pre><code>
14
[env:wemos_d1_mini32]
15
platform = espressif32
16
board = wemos_d1_mini32
17
framework = arduino
18
lib_ldf_mode = deep+
19
upload_port = COM[4]
20
; Serial Monitor options
21
monitor_speed = 115200
22
</code></pre>
23
24 1 Frédéric Blanc
h2. Code
25
26
!clipboard-202201201522-uofla.png!
27 2 Frédéric Blanc
NexPage ( uint8_t pid, uint8_t cid, const char * name)
28
page CID is always zero! 
29
	
30 1 Frédéric Blanc
<pre><code class="cpp">
31
#include <Arduino.h>
32
#include "Nextion.h"
33
NexPage p0 = NexPage(0,0,"page0");
34
NexPage p1 = NexPage(1,0,"page1");
35 2 Frédéric Blanc
...
36
p1.show();
37
...
38 1 Frédéric Blanc
</code></pre>