Code: Select all
#include <Arduino.h>
void setup() {
Serial.begin(9600);
pinMode(PB0, INPUT_ANALOG);
}
void loop() {
int analogValue = analogRead(PB0);
Serial.println("Analog Value (PB0): " + String(analogValue));
delay(1000);
}
I have tested analog read on this pin with HAL using STM32CubeIDE and it works without issues. How do I resolve this issue and make this pin work using stm32duino?