Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. void setup() {
  2. // put your setup code here, to run once:
  3. pinMode(13, OUTPUT);
  4. pinMode(12, OUTPUT);
  5. pinMode(10, OUTPUT);
  6. }
  7.  
  8. void loop() {
  9. // put your main code here, to run repeatedly:
  10. digitalWrite(13,HIGH); // turn the LED on
  11. delay(1000); // wait for oen second
  12. digitalWrite(13,LOW); // turn the LED off
  13. delay(1000); // wait for one second
  14.  
  15. analogWrite(12,1023); // turn the LED light on
  16. delay(3000); // wait for one second
  17. analogWrite(12,1023); // turn the LED off
  18. delay(3 000); // wait for one second
  19.  
  20. digitalWrite(10,HIGH); // turn the LED light on
  21. delay(2000); // wait for two seconds
  22. digitalWrite(10,HIGH); // turn the LED light off
  23. delay(2000); // wait for two seconds
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement