Created
July 7, 2014 18:13
-
-
Save ersatzavian/bdbde31a67e40d2967fa to your computer and use it in GitHub Desktop.
Blink Blue LED on imp003 EVB
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
// Device Code | |
led <- hardware.pinK; | |
led.configure(DIGITAL_OUT); | |
state <- 0; | |
function loop(){ | |
server.log("Blink: "+state); | |
led.write(state); | |
state = 1 - state; | |
imp.wakeup(1, loop); | |
} | |
loop(); | |
// Turn off White LED (First build of imp003 EVBs) | |
hardware.pinM.configure(DIGITAL_OUT); | |
hardware.pinM.write(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment