Commencé mes tests de telnet reverse, cela commence à super bien avancer

This commit is contained in:
Christian Zufferey
2020-02-03 18:44:44 +01:00
parent b13a10c5ce
commit fd43d0c64f
5 changed files with 91 additions and 9 deletions

View File

@@ -1,13 +1,13 @@
-- programme pour faire clignoter une LED version simplifiée
print("\n blink_led2.lua zf181015.1138 \n")
print("\n blink_led2.lua zf200203.1823 \n")
zLED=0
gpio.mode(zLED, gpio.OUTPUT)
ztmr_LED = tmr.create()
value = true
tmr.alarm(ztmr_LED, 100, tmr.ALARM_AUTO, function ()
ztmr_LED:alarm(100, tmr.ALARM_AUTO, function ()
if value then
gpio.write(zLED, gpio.HIGH)
else