From 7c0703bc21de473b6a668b292e9c07357a6cd155 Mon Sep 17 00:00:00 2001 From: Christian Zufferey Date: Sun, 5 May 2019 12:01:20 +0200 Subject: [PATCH] =?UTF-8?q?Commenc=C3=A9=20l'interface=20WEB=20pour=20le?= =?UTF-8?q?=20g=C3=A9n=C3=A9rateur=20de=20fonction=20AD9833?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Genefunc/AD9833/a_ad9833.lua | 7 ++++ Genefunc/AD9833/boot.lua | 8 ++--- .../Capture d’écran 2019-04-19 à 22.20.27.png | Bin .../Capture d’écran 2019-04-20 à 09.05.41.png | Bin .../simulation/échelle sonde.xlsx | Bin Genefunc/AD9833/{ => oldies}/t1.csv | 0 Genefunc/AD9833/z_index.html | 3 +- Genefunc/AD9833/z_page3.html | 3 +- Genefunc/AD9833/z_page4.html | 30 ++++++++++++++++++ No_linear/z_page3.html | 3 +- zpackage/boot.lua | 2 +- zpackage/z_page3.html | 3 +- 12 files changed, 47 insertions(+), 12 deletions(-) create mode 100644 Genefunc/AD9833/a_ad9833.lua rename Genefunc/AD9833/{ => oldies}/simulation/Capture d’écran 2019-04-19 à 22.20.27.png (100%) rename Genefunc/AD9833/{ => oldies}/simulation/Capture d’écran 2019-04-20 à 09.05.41.png (100%) rename Genefunc/AD9833/{ => oldies}/simulation/échelle sonde.xlsx (100%) rename Genefunc/AD9833/{ => oldies}/t1.csv (100%) create mode 100644 Genefunc/AD9833/z_page4.html diff --git a/Genefunc/AD9833/a_ad9833.lua b/Genefunc/AD9833/a_ad9833.lua new file mode 100644 index 0000000..f237a95 --- /dev/null +++ b/Genefunc/AD9833/a_ad9833.lua @@ -0,0 +1,7 @@ +-- Scripts pour piloter le module générateur de fonction AD9833 +-- Pour l'instant le travail se concentre que sur l'interface WEB du générateur de fonction + +print("\n a_ad9833.lua zf190505.1136 \n") + +--source: https://github.com/tardate/LittleArduinoProjects/blob/master/playground/AD9833/BasicDemoCycle/BasicDemoCycle.ino + diff --git a/Genefunc/AD9833/boot.lua b/Genefunc/AD9833/boot.lua index 917e172..10bb685 100644 --- a/Genefunc/AD9833/boot.lua +++ b/Genefunc/AD9833/boot.lua @@ -1,6 +1,6 @@ -- Scripts à charger après le boot pour démarrer son appli -print("\n boot.lua zf19422.1102 \n") +print("\n boot.lua zf190505.1132 \n") function heartbeat() f= "flash_led_xfois.lua" if file.exists(f) then dofile(f) end @@ -21,11 +21,11 @@ f= "web_ide2.lua" if file.exists(f) then dofile(f) end f= "web_srv2.lua" if file.exists(f) then dofile(f) end --f= "set_time.lua" if file.exists(f) then dofile(f) end --f= "dsleep.lua" if file.exists(f) then dofile(f) end -f= "a_no_linear.lua" if file.exists(f) then dofile(f) end +f= "a_ad9833.lua" if file.exists(f) then dofile(f) end f=nil -heartbeat=nil ---heartbeat() +--heartbeat=nil +heartbeat() diff --git a/Genefunc/AD9833/simulation/Capture d’écran 2019-04-19 à 22.20.27.png b/Genefunc/AD9833/oldies/simulation/Capture d’écran 2019-04-19 à 22.20.27.png similarity index 100% rename from Genefunc/AD9833/simulation/Capture d’écran 2019-04-19 à 22.20.27.png rename to Genefunc/AD9833/oldies/simulation/Capture d’écran 2019-04-19 à 22.20.27.png diff --git a/Genefunc/AD9833/simulation/Capture d’écran 2019-04-20 à 09.05.41.png b/Genefunc/AD9833/oldies/simulation/Capture d’écran 2019-04-20 à 09.05.41.png similarity index 100% rename from Genefunc/AD9833/simulation/Capture d’écran 2019-04-20 à 09.05.41.png rename to Genefunc/AD9833/oldies/simulation/Capture d’écran 2019-04-20 à 09.05.41.png diff --git a/Genefunc/AD9833/simulation/échelle sonde.xlsx b/Genefunc/AD9833/oldies/simulation/échelle sonde.xlsx similarity index 100% rename from Genefunc/AD9833/simulation/échelle sonde.xlsx rename to Genefunc/AD9833/oldies/simulation/échelle sonde.xlsx diff --git a/Genefunc/AD9833/t1.csv b/Genefunc/AD9833/oldies/t1.csv similarity index 100% rename from Genefunc/AD9833/t1.csv rename to Genefunc/AD9833/oldies/t1.csv diff --git a/Genefunc/AD9833/z_index.html b/Genefunc/AD9833/z_index.html index dd689c8..4549496 100644 --- a/Genefunc/AD9833/z_index.html +++ b/Genefunc/AD9833/z_index.html @@ -7,12 +7,13 @@ -

ESP8266 home page 190422.1052

+

ESP8266 home page 190505.1144

Différentes pages HTML:

Page 1, affichage de la température dynamique en code Lua inline.
Page 2, tableau dynamique écrit en Lua inline.
Page 3, affichage du capteur non linéaire corrigé.
+ Page 4, interface du générateur de fonction AD9833.
Page qui n'existe pas !

diff --git a/Genefunc/AD9833/z_page3.html b/Genefunc/AD9833/z_page3.html index f0be1e9..6abc4ed 100644 --- a/Genefunc/AD9833/z_page3.html +++ b/Genefunc/AD9833/z_page3.html @@ -7,7 +7,7 @@ -

ESP8266 page 3 190422.1200

+

ESP8266 page 3 190505.1156


Coucou c'est la page 3 !
Retour à la home page...


@@ -46,6 +46,5 @@ zout("Il reste: "..node.heap().." de RAM !

\n") %> - diff --git a/Genefunc/AD9833/z_page4.html b/Genefunc/AD9833/z_page4.html new file mode 100644 index 0000000..1b087cb --- /dev/null +++ b/Genefunc/AD9833/z_page4.html @@ -0,0 +1,30 @@ + + + + + + Générateur de fonction AD9833 + + + +

Générateur de fonction AD9833 190505.1200

+ Retour à la home page...


+ + Le code Lua pour cet interface se trouve dans le code HTML de cette page + et est exécuté sur le NodeMCU.
+ Les données viennent du NodeMCU !

+ + <% + zout("Il reste: "..node.heap().." de RAM !

\n") + %> + + +
Yeah... cela fonctionne vachement bien !

+ + <% + zout("Il reste: "..node.heap().." de RAM !

\n") + %> + + + + diff --git a/No_linear/z_page3.html b/No_linear/z_page3.html index f0be1e9..feb3ec6 100644 --- a/No_linear/z_page3.html +++ b/No_linear/z_page3.html @@ -7,7 +7,7 @@ -

ESP8266 page 3 190422.1200

+

ESP8266 page 3 190505.1155


Coucou c'est la page 3 !
Retour à la home page...


@@ -46,6 +46,5 @@ zout("Il reste: "..node.heap().." de RAM !

\n") %> - diff --git a/zpackage/boot.lua b/zpackage/boot.lua index 917e172..447df3e 100644 --- a/zpackage/boot.lua +++ b/zpackage/boot.lua @@ -1,6 +1,6 @@ -- Scripts à charger après le boot pour démarrer son appli -print("\n boot.lua zf19422.1102 \n") +print("\n boot.lua zf190422.1102 \n") function heartbeat() f= "flash_led_xfois.lua" if file.exists(f) then dofile(f) end diff --git a/zpackage/z_page3.html b/zpackage/z_page3.html index f0be1e9..6abc4ed 100644 --- a/zpackage/z_page3.html +++ b/zpackage/z_page3.html @@ -7,7 +7,7 @@ -

ESP8266 page 3 190422.1200

+

ESP8266 page 3 190505.1156


Coucou c'est la page 3 !
Retour à la home page...


@@ -46,6 +46,5 @@ zout("Il reste: "..node.heap().." de RAM !

\n") %> -