Kenji Arai
/
LPC1114_SPI_LCD_ST7565family_test
Controller chip is ST7565
SPI LCD: AQM1248A (Akizuki) or AD-12864-SPI (antendo)
Diff: redirect_stdio/redirect_stdio.cpp
- Revision:
- 4:9d99684c6373
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/redirect_stdio/redirect_stdio.cpp Sat Aug 08 04:20:39 2020 +0000 @@ -0,0 +1,21 @@ +/* + * mbed Application program + * Redirect Standard Input/Output + * + * Copyright (c) 2020 Kenji Arai / JH1PJL + * http://www7b.biglobe.ne.jp/~kenjia/ + * https://os.mbed.com/users/kenjiArai/ + * Created: August 7th, 2020 + * Revised: August 7th, 2020 + */ + +#include "mbed.h" + +// Create a BufferedSerial object to be used by the system I/O retarget code +BufferedSerial pc(USBTX, USBRX, 9600); + +// the system I/O retarget +FileHandle *mbed::mbed_override_console(int fd) +{ + return &pc; +}