From 34ab8dd6dde058aeeff721eb066dad36858d8f4b Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 15 Jun 2014 00:41:47 +0100 Subject: 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. --- stmhal/pybstdio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'stmhal/pybstdio.c') 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); -- cgit v1.2.3