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