Advertisement
lorenzo_cesaretti

Due Led Arduino alternati

Apr 9th, 2021
17,372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup()
  2. {
  3.   pinMode(2, OUTPUT); //inzializzo
  4.   pinMode(3, OUTPUT);
  5. }
  6.  
  7. void loop()
  8. {
  9.   digitalWrite(2, HIGH);
  10.   digitalWrite(3, LOW);
  11.   delay(1000);
  12.   digitalWrite(2, LOW);
  13.   digitalWrite(3, HIGH);
  14.   delay(1000);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement