#define LED 12
#define POT A7
int potiwert = 0;
void setup()
{
pinMode(LED, OUTPUT);
Serial.begin(9600);
}
void loop()
{
potiwert = analogRead(POT);
digitalWrite(LED,HIGH);
Serial.println(potiwert);
if(potiwert <= 200 )
{digitalWrite(LED,HIGH);
}
else
{
digitalWrite(LED, HIGH);
delay(potiwert);
digitalWrite(LED, LOW);
delay(potiwert);
}
}