NEXTION afficheur » History » Version 14
Frédéric Blanc, 2021-04-17 11:50
1 | 1 | Frédéric Blanc | h1. NEXTION afficheur |
---|---|---|---|
2 | |||
3 | !clipboard-202104121515-bo7ko.png! |
||
4 | |||
5 | 11 | Frédéric Blanc | https://nextion.tech |
6 | |||
7 | 12 | Frédéric Blanc | h2. Nextion Editor |
8 | |||
9 | https://nextion.tech/nextion-editor/ |
||
10 | |||
11 | 5 | Frédéric Blanc | h2. jeux d'intruction |
12 | |||
13 | https://nextion.tech/instruction-set/ |
||
14 | |||
15 | 8 | Frédéric Blanc | |
16 | <code><pre> |
||
17 | 13 | Frédéric Blanc | nextion,page 1 //changer de page |
18 | 6 | Frédéric Blanc | Nextion,page0.objname.txt="bonjour" //objet texte |
19 | 10 | Frédéric Blanc | nextion,page0.x0.val=215 //objet float 21.5 |
20 | 6 | Frédéric Blanc | NEXTION,page0.j0.val=60 //objet numérique (Number, Progress bar) |
21 | 1 | Frédéric Blanc | NEXTION,page0.j0.bco=RED //couleur de fond |
22 | 13 | Frédéric Blanc | NEXTION,dim=40 //luminosité de l'écran à 40 (de 0 à 100) |
23 | 7 | Frédéric Blanc | NEXTION,sleep=1 //le Nextion passe en veille, l'écran s'éteint |
24 | 6 | Frédéric Blanc | NEXTION,sleep=0 //réveille le Nextion et l'écran se rallume |
25 | 8 | Frédéric Blanc | </pre></code> |
26 | 3 | Frédéric Blanc | |
27 | 14 | Frédéric Blanc | h2. BARGRAPH |
28 | |||
29 | <code><pre> |
||
30 | On Clock#Time=All,**:** do //toutes les minutes |
||
31 | nextion,page 0 //affichage de la page 0 |
||
32 | nextion,page0.heure.txt="%systm_hm%" //affichage de l'heure format 00:00 |
||
33 | Let,1,[mqtt#temp]*10 //variable locale |
||
34 | nextion,page0.x0.val=[var#1] //affichage d'un floatant |
||
35 | nextion,page0.g0.txt="Bonjour" //affichage |
||
36 | timerSet,1,30 //timer 30s |
||
37 | endon |
||
38 | |||
39 | On Rules#Timer=1 do |
||
40 | nextion,page 1 |
||
41 | nextion,page1.x0.val=[var#1] |
||
42 | Let,1,[var#1]/10+25 |
||
43 | nextion,page1.thermo.val=[var#1#F] //affichage BARGRAPH (#F arrondie) |
||
44 | Publish %sysname%/IP,%ip% |
||
45 | endon |
||
46 | </pre></code> |
||
47 | |||
48 | log exemple |
||
49 | <code><pre> |
||
50 | 7413718: ACT : Let,1,194/10+25 |
||
51 | 7413723: ACT : nextion,page1.thermo.val=44 |
||
52 | </pre></code> |
||
53 | |||
54 | 1 | Frédéric Blanc | https://www.letscontrolit.com/wiki/index.php/NEXTIONDisplay |
55 | |||
56 | https://www.letscontrolit.com/wiki/index.php?title=Nextion |
||
57 | 3 | Frédéric Blanc | |
58 | https://forum.jeedom.com/viewtopic.php?t=26350 |
||
59 | 4 | Frédéric Blanc | |
60 | https://community.jeedom.com/t/controler-jeedom-avec-un-ecran-nextion/11730 |