Nextion » History » Version 3
Frédéric Blanc, 2022-01-20 15:30
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 | platformio.ini |
||
10 | <pre><code> |
||
11 | [env:wemos_d1_mini32] |
||
12 | platform = espressif32 |
||
13 | board = wemos_d1_mini32 |
||
14 | framework = arduino |
||
15 | lib_ldf_mode = deep+ |
||
16 | upload_port = COM[4] |
||
17 | ; Serial Monitor options |
||
18 | monitor_speed = 115200 |
||
19 | </code></pre> |
||
20 | |||
21 | |||
22 | 1 | Frédéric Blanc | h2. Code |
23 | |||
24 | !clipboard-202201201522-uofla.png! |
||
25 | 2 | Frédéric Blanc | NexPage ( uint8_t pid, uint8_t cid, const char * name) |
26 | page CID is always zero! |
||
27 | |||
28 | 1 | Frédéric Blanc | <pre><code class="cpp"> |
29 | #include <Arduino.h> |
||
30 | #include "Nextion.h" |
||
31 | NexPage p0 = NexPage(0,0,"page0"); |
||
32 | NexPage p1 = NexPage(1,0,"page1"); |
||
33 | 2 | Frédéric Blanc | ... |
34 | p1.show(); |
||
35 | ... |
||
36 | 1 | Frédéric Blanc | </code></pre> |