Ain.read() not returning any values

Hello!
I started building a simple project in MBed OS 15 on my STM WB55 board and when I’m using ADC to read values from my sensor with example code printf funtion that’s supposed to print my return from ain.read_voltage() and ain.read() don’t do anything. ain.read_u16() on the other hand gives out some values…

Here is the screenshot of the problem:

What might be the problem? Why is just printing “%f” like it’s not format specifier.

Hello,

Floats are disabled in default MbedOS setings, aka printf-minimal.

mbed-os/README.md at master · ARMmbed/mbed-os (github.com)

this doesn’t make sense, nothing like Mbed Os 15 does not exist.

BR, Jan

1 Like

Thank you. Sorry for my error on naming the OS, I had 6.15 on my mind.

You are welcome, good luck with your project :slight_smile:

BR, Jan