Created
September 7, 2016 14:56
-
-
Save Technicus/24f787f7e8e72e3e36e768f152fd7c81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("GPIO TEST") | |
lighton = 0 | |
gpio.mode(1, gpio.OUTPUT) | |
tmr.alarm(1, 1000, 1, function() | |
if lighton == 0 then | |
lighton = 1 | |
gpio.write(1, gpio.LOW) | |
print("\tGPIO LOW\n") | |
else | |
lighton = 0 | |
gpio.write(1, gpio.HIGH) | |
print("\tGPIO HIGH\n") | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment