Commencé le projet de reflashage d'un SonOff en Lua afin de pouvoir le programmer à distance sans devoir le brancher sur le port série

This commit is contained in:
Christian Zufferey
2020-01-01 11:13:30 +01:00
parent f45dd0b58b
commit eb7d0f8b48
47 changed files with 2337 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
-- start.lua
-- programme de start
-- zf180715.2359
zBTN = 3 -- GPIO0 button
zRelay = 6 -- GPIO12 PWM0 relay (active high)
zLED = 7 -- GPIO13 PWM1 GREEN LED (active low)
gpio.mode(zLED,gpio.OUTPUT)
pwm.setup(zLED, 2, 900)
pwm.start(zLED)