const int potRedPin = 34;
const int potGreenPin = 35;
const int potBluePin = 32;
const int redLedPin = 15;
const int greenLedPin = 2;
const int blueLedPin = 4;
void setup() {
Serial.begin(115200);
pinMode(potRedPin, INPUT);
pinMode(potGreenPin, INPUT);
pinMode(potBluePin, INPUT);
pinMode(redLedPin, OUTPUT);
pinMode(greenLedPin, OUTPUT);
pinMode(blueLedPin, OUTPUT);
}
void loop() {
int potRedValue = analogRead(potRedPin);
int potGreenValue = analogRead(potGreenPin);
int potBlueValue = analogRead(potBluePin);
int redValue = potRedValue >> 4;
int greenValue = potGreenValue >> 4;
int blueValue = potBlueValue >> 4;
analogWrite(redLedPin, redValue);
analogWrite(greenLedPin, greenValue);
analogWrite(blueLedPin, blueValue);
delay(10);
}