Skip to content

Instantly share code, notes, and snippets.

View SageStarCodes's full-sized avatar

Sage Star SageStarCodes

  • Slovakia
View GitHub Profile
@jimsynz
jimsynz / rgb_spectrum.c
Created January 5, 2011 20:59
Arduino sketch to cycle an RGB LED through the colour spectrum.
const int redPin = 11;
const int greenPin = 10;
const int bluePin = 9;
void setup() {
// Start off with the LED off.
setColourRgb(0,0,0);
}
void loop() {