Skip to content

Instantly share code, notes, and snippets.

@DarkLotus
Created February 13, 2016 05:56
Show Gist options
  • Select an option

  • Save DarkLotus/74a52e4acdb619abf28e to your computer and use it in GitHub Desktop.

Select an option

Save DarkLotus/74a52e4acdb619abf28e to your computer and use it in GitHub Desktop.
void setup() {
// initialize digital pin 13 as an output.
pinMode(1, OUTPUT);
Serial.begin(74880);
Serial.println("booted");
}
// the loop function runs over and over again forever
void loop() {
Serial.println("loop\n");
blinkLED(1000);
blinkLED(3000);
blinkLED(1000);
}
void blinkLED(int delayMS) {
digitalWrite(1, HIGH); // turn the LED on (HIGH is the voltage level)
delay(delayMS); // wait for a second
digitalWrite(1, LOW); // turn the LED off by making the voltage LOW
delay(delayMS);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment