#define led 5
#define pot A0
void setup()
{
Serial.begin(9600);
Serial.println("Pot Değer Okuma");
}
void loop() {
int deger = analogRead(pot);
deger = map(deger,0,1023,0,255);
analogWrite(led,deger);
Serial.println(deger);
delay(300);
}