This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Define the pins for the potentiometer and RGB LED | |
| const int potPin = A0; // Analog pin for the potentiometer | |
| const int redPin = 9; // Red LED pin | |
| const int greenPin = 10; // Green LED pin | |
| const int bluePin = 11; // Blue LED pin | |
| void setup() { | |
| // Set the LED pins as output | |
| pinMode(redPin, OUTPUT); | |
| pinMode(greenPin, OUTPUT); |