Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
2f980c36
Commit
2f980c36
authored
Dec 09, 2014
by
zeroday
Browse files
Merge pull request #24 from follower/patch-1
Fix LED blink example so it works
parents
85439561
d76b5e93
Changes
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
2f980c36
...
@@ -124,7 +124,7 @@ braudrate:9600
...
@@ -124,7 +124,7 @@ braudrate:9600
####And blink it
####And blink it
```
lua
```
lua
lighton
=
0
lighton
=
0
tmr
.
alarm
(
1000
,
1
,
function
()
tmr
.
alarm
(
1
,
1000
,
1
,
function
()
if
lighton
==
0
then
if
lighton
==
0
then
lighton
=
1
lighton
=
1
led
(
512
,
512
,
512
)
led
(
512
,
512
,
512
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment