// 32230096
#include <Servo.h>
Servo myservo;
const int potPin = PA0;
const int servoPin = PB5;
int potValue, servoAngle;
void setup() {
myservo.attach(servoPin);
Serial.begin(115200);
}
void loop() {
potValue = analogRead(potPin);
servoAngle = map(potValue, 0, 1023, 0, 180);
Serial.println(potValue);
Serial.println(servoAngle);
myservo.write(servoAngle);
delay(100);
}