first commit
This commit is contained in:
13
helloworld.lua
Normal file
13
helloworld.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
-- blink the blue led builting
|
||||
-- zf180709.2200
|
||||
|
||||
zpin=0 --led blue builting
|
||||
gpio.mode(zpin, gpio.OUTPUT)
|
||||
|
||||
for i=1,20 do
|
||||
print("Hello World "..i)
|
||||
gpio.write(zpin, gpio.LOW)
|
||||
tmr.delay(100000)
|
||||
gpio.write(zpin, gpio.HIGH)
|
||||
tmr.delay(100000)
|
||||
end
|
||||
Reference in New Issue
Block a user