Advertisement
Guest User

Arduino RGB LED Module

a guest
Oct 13th, 2017
9,729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. const int redPin = 8;
  2. const int greenPin = 10;
  3. const int bluePin = 12;
  4.  
  5. void setup() {}
  6.  
  7. void loop() {
  8.   analogWrite(redPin, random(0,255));
  9.   analogWrite(greenPin, random(0,255));
  10.   analogWrite(bluePin, random(0,255));
  11.   delay(500);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement