#include #include "deneyap.h" #define servopin D0 Servo servo1; int potdeger = 0; int pwm = 0; void setup() { servo1.attach(servopin); } void loop () { potdeger = analogRead(A0); Serial.println(potdeger); pwm = map(potdeger,0,4095,0,180); analogWrite(D0, pwm); delay(10); servo1.write(potdeger); }