Guest User

Untitled

a guest
Sep 1st, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1.  
  2.  
  3. #define REDPIN 5
  4. #define GREENPIN 6
  5. #define BLUEPIN 3
  6.  
  7. void setup() {
  8. pinMode(REDPIN, OUTPUT);
  9. pinMode(GREENPIN, OUTPUT);
  10. pinMode(BLUEPIN, OUTPUT);
  11. }
  12.  
  13.  
  14. void loop() {
  15. analogWrite(REDPIN, 255);
  16. analogWrite(BLUEPIN, 0);
  17. analogWrite(GREENPIN, 0);
  18. }
Add Comment
Please, Sign In to add comment