Renommé mon Workshop

This commit is contained in:
Christian Zufferey
2020-03-03 00:07:00 +01:00
parent 70961043e4
commit f133207709
68 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
-- programme pour faire clignoter une LED version simplifiée
print("\n blink_led1.lua zf200302.2243 \n")
zLED=0
gpio.mode(zLED, gpio.OUTPUT)
ztmr_LED = tmr.create()
value = true
ztmr_LED:alarm(100, tmr.ALARM_AUTO, function ()
if value then
gpio.write(zLED, gpio.HIGH)
else
gpio.write(zLED, gpio.LOW)
end
value = not value
end)