I am using PB4 in STM32L433 as a GPIO analog to simply read an external battery voltage. I use Arduino IDE with the following commands:
Code: Select all
analogReadResolution(12);
Battery = analogRead(PB4);
Thanks for your support!
Code: Select all
analogReadResolution(12);
Battery = analogRead(PB4);