/* STM32 Blue Pill project using the STM32 Arduino Core (stm32duino) */
#define LED PB9
#define pot A0
int potValue;
void setup() {
Serial.begin(115200);
Serial.println("Hello STM32!");
Serial.println("Welcome to Wokwi :-)");
pinMode(LED, OUTPUT);
}
void loop() {
analogRead(pot);
Serial.println(potValue);
analogWrite(LED,potValue);
delay(200);
}