Guest User

Arduino RGB LED Module

a guest
Oct 13th, 2017
6,008
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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×