Skip to content

Instantly share code, notes, and snippets.

@ansarid
Created November 3, 2017 08:13
Show Gist options
  • Save ansarid/80c739858b3ae6b65189937e7bac8ad8 to your computer and use it in GitHub Desktop.
Save ansarid/80c739858b3ae6b65189937e7bac8ad8 to your computer and use it in GitHub Desktop.
ON/OFF Toggle Test
int ON_BUTTON = 13;
void setup() {
pinMode(ON_BUTTON, OUTPUT);
}
void loop() {
delay(5000);
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(30000);
digitalWrite(LED_BUILTIN, HIGH);
delay(10000);
digitalWrite(LED_BUILTIN, LOW);
delay(60000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment