Skip to content

Instantly share code, notes, and snippets.

// 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);