Files
NodeMCU_Lua/stop.lua
Christian Zufferey 3149e7ecc8 first commit
2018-07-22 12:43:16 +02:00

14 lines
235 B
Lua

-- stop.lua
-- programme de stop
-- zf180716.0010
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.stop(zLED)
gpio.write(zLED,1)