noOfBlinks = 0
pin = 0
blinkDelay = 1000
[top]
print "How many times to blink"
textbox noOfBlinks
print "Pin To use"
textbox pin
print "Blink Delay"
textbox blinkDelay
button "Blink Me Please", [blinkMe]
button "Exit", [getMeOutOfHere]
wait
[blinkMe]
for x = 1 to noOfBlinks
io(po,pin,1)
delay blinkDelay
io(po,pin,0)
delay blinkDelay
next x
wait
[getMeOutOfHere]
end
This will prompt the user to select the pin, blink duration and number of blinks to execute.
GPIO 2 is normally connected to an LED on the node mcu boards.