Tri-ColourLEDLabSampleCode
Tri-ColourLEDLabSampleCode
// Gerald.Hurdle@AlgonquinCollege.com
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(blueLED, OUTPUT);
pinMode(greenLED, OUTPUT);
pinMode(redLED, OUTPUT);
//use this open circuited pin for a seed to the random number generator
pinMode(A0, INPUT);
randomSeed(analogRead(A0));
// Demo #4
//README: https://www.arduino.cc/reference/en/language/functions/external-
interrupts/attachinterrupt/
//attachInterrupt( pushButton, cycleRGB, FALLING );
}
void loop() {
// put your main code here, to run repeatedly:
} //end loop()