int LED = 13;
int potPin = A1;
//int button = 12;
void setup()
{
pinMode(LED, OUTPUT);
}
void loop()
{
int potValue = analogRead(potPin);
int brightness = potValue / 4;
analogWrite(LED, brightness);
}int LED = 13;
int potPin = A1;
//int button = 12;
void setup()
{
pinMode(LED, OUTPUT);
}
void loop()
{
int potValue = analogRead(potPin);
int brightness = potValue / 4;
analogWrite(LED, brightness);
}