Hello, I use Keil studio mbed OS6.13 and make project with blink LED example.
I try to use Buffered print like
num = sprintf(buf, "ch%d: %.2f ",i, v[i]);
serial_port.write(buf, num);
but, it’s not work.
And I found this one
but, there is no “mbed_app.json”.
Then I try to modify mbed_config.h like below
#define MBED_CONF_PLATFORM_MINIMAL_PRINTF_ENABLE_64_BIT 1
#define MBED_CONF_PLATFORM_MINIMAL_PRINTF_ENABLE_FLOATING_POINT 1
#define MBED_CONF_PLATFORM_MINIMAL_PRINTF_SET_FLOATING_POINT_MAX_DECIMALS 6
It still not work.
Anyone know how to use %f on Keil studio?