Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int led1 = 3;
- const int led2 = 4;
- const int button = 2;
- void setup() {
- pinMode(button,INPUT);
- pinMode(led1,OUTPUT);
- pinMode(led2,OUTPUT);
- }
- void loop() {
- digitalWrite(led1,HIGH);
- delay(500);
- digitalWrite(led1,LOW);
- delay(500);
- }
Add Comment
Please, Sign In to add comment