However it doesn't seem to work. The LED turns on and then just stays on.
Have a made a basic mistake in the code?
Code: Select all
On System#Boot do
gpio,12,0
timerSet,1,10
endon
On Rules#Timer=1 do
if [E1SW1#Switch]=1
gpio,12,0
else
gpio,12,1
endif
timerSet,1,10
endon
Wemos D1 Mini (v1 clone)
Any ideas would be great!