Commit d76b5e93 authored by follower's avatar follower
Browse files

Fix LED blink example so it works

Two fixes to the LED blink example:

 * The ID and delay time have been swapped (should be ID followed by delay time).
 * By default the alarm only fires once, there needs to be an extra `1` as a parameter before the function definition.
parent 85439561
......@@ -124,7 +124,7 @@ braudrate:9600
####And blink it
```lua
lighton=0
tmr.alarm(1000,1,function()
tmr.alarm(1,1000,1,function()
if lighton==0 then
lighton=1
led(512,512,512)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment