Shekhar777

4 LED BLINK PIN 9,10,11,12

Mar 28th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2.   // initialse digital pin 13 as a output:
  3. pinMode(12,OUTPUT);
  4. pinMode(11,OUTPUT);
  5. pinMode(10,OUTPUT);
  6. pinMode(9,OUTPUT);
  7. }
  8.  
  9. void loop() {
  10.   // put your main code here, to run repeatedly:
  11. digitalWrite(12,HIGH);
  12. digitalWrite(11,HIGH);
  13. digitalWrite(10,HIGH);
  14. digitalWrite(9,HIGH);
  15. delay(200);
  16. digitalWrite(12,LOW);
  17. digitalWrite(11,LOW);
  18. digitalWrite(10,LOW);
  19. digitalWrite(9,LOW);
  20. delay(100);
  21. }
Add Comment
Please, Sign In to add comment