Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup()
- {
- pinMode(13,OUTPUT); // LED output
- pinMode(2,INPUT); // Button input
- }
- void loop()
- {
- while(digitalRead(2)==LOW);
- digitalWrite(13,HIGH);
- delay(5000);
- digitalWrite(13,LOW);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement