File size: 330 Bytes
8e53a3e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | /**
Turns on a RGB LED connected to a specified pin.
3 APR 2025 by Blind Author
*/
#include <Arduino.h>
const int R = 5;
const int G = 4;
const int B = 2;
void setup() {
pinMode(R, OUTPUT);
pinMode(G, OUTPUT);
pinMode(B, OUTPUT);
analogWrite(R, 255);
analogWrite(G, 255);
analogWrite(B, 0);
}
void loop() {
}
|