Skip to content

Instantly share code, notes, and snippets.

@mithi
Created November 19, 2015 08:14
Show Gist options
  • Save mithi/f3c1428f4f911904f4c6 to your computer and use it in GitHub Desktop.
Save mithi/f3c1428f4f911904f4c6 to your computer and use it in GitHub Desktop.
int ledPin = 13;
int onTime = 1000;
int offTime = 500;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(onTime);
digitalWrite(ledPin, LOW);
delay(offTime);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment