Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 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,700); // turn the LED light on
  16. delay(2000); // wait for 2 seconds
  17. analogWrite(12,100); // turn the LED off
  18. delay(2000); // wait for 2 seconds
  19.  
  20. digitalWrite(10,HIGH); // turn the LED light on
  21. delay(1000); // wait for one seconds
  22. digitalWrite(10,LOW); // turn the LED light off
  23. delay(1000); // wait for one seconds
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement