Commencé l'interface WEB pour le générateur de fonction AD9833
This commit is contained in:
7
Genefunc/AD9833/a_ad9833.lua
Normal file
7
Genefunc/AD9833/a_ad9833.lua
Normal 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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
30
Genefunc/AD9833/z_page4.html
Normal file
30
Genefunc/AD9833/z_page4.html
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user