Simple RGB LED Code int redLedPin = 10; int greenLedPin = 9; int blueLedPin = 11; void setup() { pinMode(redLedPin, OUTPUT); pinMode(greenLedPin, OUTPUT); pinMode(blueLedPin, OUTPUT); } void loop() { analogWrite(blueLedPin, 255); analogWrite(greenLedPin, 80); analogWrite(redLedPin, 255); delay(500); } LED RGB Code with a colour change loop /* Adafruit Arduino – Lesson 3. RGB LED */ […]
Entries from September 2018
Some Arduino Code for Class
September 25th, 2018 · Comments Off on Some Arduino Code for Class
Tags: Uncategorized