Advertisement
2607

RGBblinks2

Jul 30th, 2019
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2.   pinMode(9, OUTPUT);
  3.   pinMode(10, OUTPUT);
  4.   pinMode(11, OUTPUT);
  5.  
  6. }
  7.  
  8. void loop() {
  9.    for(int i=0;i<=255;i++)
  10. {
  11.  //analogWrite(9, i);
  12.  //analogWrite(10, i);
  13.  analogWrite(11, i);
  14.  delay(5);
  15. }
  16. for(int i=255;i>=0;i--)
  17. {
  18.   //analogWrite(9, i);
  19.   //analogWrite(10, i);
  20.   analogWrite(11, i);
  21.   delay(5);
  22. }
  23. delay(2000);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement