Advertisement
Guest User

Arduino RGB LED Module

a guest
Oct 13th, 2017
8,041
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement