let noOfBlinks = 0
let pin = 0
let blinkDelay = 1000
[top]
print "How many times to blink" noOfBlinks
textbox noOfBlinks
print "Pin To use"
textbox pin
print "Blink Delay"
textbox blinkDelay
button "Blink Me Please" [blinkMe]
button "Exit" [getMeOutOfHere]
wait
[blinkMe]
let x = 0
[blinkLoop]
let x = x + 1
po pin 1
delay blinkDelay
po pin 0
delay blinkDelay
if noOfBlinks >= x then goto [blinkLoop]
wait
[getMeOutOfHere]
end
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com