const int ledPin = 9;
const int ledPinmerah = 10;
const int ledPinbiru = 11;
int potPin = A0;
int potValue = 0;
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(ledPinmerah, OUTPUT);
pinMode(ledPinbiru, OUTPUT);
// put your setup code here, to run once:
}
void loop() {
potValue = analogRead(potPin);
analogWrite(ledPin,potValue/4);
analogWrite(ledPinbiru,potValue/4);
analogWrite(ledPinmerah,potValue/4);
delay(10);
// put your main code here, to run repeatedly:
}