got it, I have to use:
static BufferedSerial console(STDIO_UART_TX, STDIO_UART_RX, 115200);
FileHandle *mbed::mbed_override_console(int) {
return &console;
}
then printf works and I can use console.readable() and console.read().
got it, I have to use:
static BufferedSerial console(STDIO_UART_TX, STDIO_UART_RX, 115200);
FileHandle *mbed::mbed_override_console(int) {
return &console;
}
then printf works and I can use console.readable() and console.read().