Skip to content

Instantly share code, notes, and snippets.

@ersatzavian
Created July 7, 2014 18:13
Show Gist options
  • Save ersatzavian/bdbde31a67e40d2967fa to your computer and use it in GitHub Desktop.
Save ersatzavian/bdbde31a67e40d2967fa to your computer and use it in GitHub Desktop.
Blink Blue LED on imp003 EVB
// 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