diff options
| author | Damien George | 2014-06-15 00:41:47 +0100 |
|---|---|---|
| committer | Damien George | 2014-06-15 00:41:47 +0100 |
| commit | 34ab8dd6dde058aeeff721eb066dad36858d8f4b (patch) | |
| tree | 7d4393568b5fdaedbb732d4ce39471ec28759d92 /stmhal/pybstdio.c | |
| parent | 0294661da5b68cd428362fb81513d11471e6a24a (diff) | |
stmhal: Update and improve LCD driver.
Still some method names to iron out, and funtionality to add, but this
will do for the first, basic version.
Diffstat (limited to 'stmhal/pybstdio.c')
| -rw-r--r-- | stmhal/pybstdio.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/stmhal/pybstdio.c b/stmhal/pybstdio.c index b7eacf0a0..59e1ead56 100644 --- a/stmhal/pybstdio.c +++ b/stmhal/pybstdio.c @@ -38,11 +38,14 @@ #include "usb.h" #include "uart.h" +// TODO make stdin, stdout and stderr writable objects so they can +// be changed by Python code. + void stdout_tx_str(const char *str) { if (pyb_uart_global_debug != PYB_UART_NONE) { uart_tx_str(pyb_uart_global_debug, str); } -#if defined(USE_HOST_MODE) && MICROPY_HW_HAS_LCD +#if 0 && defined(USE_HOST_MODE) && MICROPY_HW_HAS_LCD lcd_print_str(str); #endif usb_vcp_send_str(str); @@ -52,7 +55,7 @@ void stdout_tx_strn(const char *str, uint len) { if (pyb_uart_global_debug != PYB_UART_NONE) { uart_tx_strn(pyb_uart_global_debug, str, len); } -#if defined(USE_HOST_MODE) && MICROPY_HW_HAS_LCD +#if 0 && defined(USE_HOST_MODE) && MICROPY_HW_HAS_LCD lcd_print_strn(str, len); #endif usb_vcp_send_strn(str, len); |
