Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created November 3, 2015 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelsarduino/c20f15a77f0a95595022 to your computer and use it in GitHub Desktop.
Save michaelsarduino/c20f15a77f0a95595022 to your computer and use it in GitHub Desktop.
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
if(analogRead(3) < 50)
{
for(int x = 0;x < 100; x++)
{
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment