Commencé l'interface WEB pour le générateur de fonction AD9833

This commit is contained in:
Christian Zufferey
2019-05-05 12:01:20 +02:00
parent e5f140f0c1
commit 7c0703bc21
12 changed files with 47 additions and 12 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -7,12 +7,13 @@
</head>
<body>
<h1>ESP8266 home page 190422.1052</h1>
<h1>ESP8266 home page 190505.1144</h1>
<h2>Différentes pages HTML:</h2>
<h3>
<a href="z_page1.html">Page 1, affichage de la température dynamique en code Lua inline.</a><br>
<a href="z_page2.html">Page 2, tableau dynamique écrit en Lua inline.</a><br>
<a href="z_page3.html">Page 3, affichage du capteur non linéaire corrigé.</a><br>
<a href="z_page4.html">Page 4, interface du générateur de fonction AD9833.</a><br>
<a href="page_qui_existe_pag.html">Page qui n'existe pas !</a><br>
</h3>
</body>

View File

@@ -7,7 +7,7 @@
</head>
<body>
<h1>ESP8266 page 3 190422.1200</h1>
<h1>ESP8266 page 3 190505.1156</h1>
<br>
Coucou c'est la page 3 !<br>
<a href="/">Retour à la home page...</a><br><br><br>
@@ -46,6 +46,5 @@
zout("Il reste: "..node.heap().." de RAM !<br><br>\n")
%>
</table>
</body>
</html>

View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="fr" dir="ltr">
<head>
<meta charset='utf-8' name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Générateur de fonction AD9833</title>
</head>
<body>
<h1>Générateur de fonction AD9833 190505.1200</h1>
<a href="/">Retour à la home page...</a><br><br><br>
Le code Lua pour cet interface se trouve dans le code HTML de cette page
et est exécuté sur le NodeMCU.<br>
Les données viennent du NodeMCU !<br><br>
<%
zout("Il reste: "..node.heap().." de RAM !<br><br>\n")
%>
<br>Yeah... cela fonctionne vachement bien !<br><br>
<%
zout("Il reste: "..node.heap().." de RAM !<br><br>\n")
%>
</body>
</html>

View File

@@ -7,7 +7,7 @@
</head>
<body>
<h1>ESP8266 page 3 190422.1200</h1>
<h1>ESP8266 page 3 190505.1155</h1>
<br>
Coucou c'est la page 3 !<br>
<a href="/">Retour à la home page...</a><br><br><br>
@@ -46,6 +46,5 @@
zout("Il reste: "..node.heap().." de RAM !<br><br>\n")
%>
</table>
</body>
</html>

View File

@@ -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

View File

@@ -7,7 +7,7 @@
</head>
<body>
<h1>ESP8266 page 3 190422.1200</h1>
<h1>ESP8266 page 3 190505.1156</h1>
<br>
Coucou c'est la page 3 !<br>
<a href="/">Retour à la home page...</a><br><br><br>
@@ -46,6 +46,5 @@
zout("Il reste: "..node.heap().." de RAM !<br><br>\n")
%>
</table>
</body>
</html>