Skip to content

Instantly share code, notes, and snippets.

@Seich
Created May 28, 2012 20:58
Show Gist options
  • Save Seich/2821196 to your computer and use it in GitHub Desktop.
Save Seich/2821196 to your computer and use it in GitHub Desktop.
void setup () {
Serial.begin (9600);
pinMode (12, OUTPUT);
}
void serialEvent() {
digitalWrite(12, HIGH);
delay(2000);
digitalWrite(12, LOW);
Serial.read();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment