Controller chip is ST7565

Dependencies:   ST7565_SPI_LCD

SPI LCD: AQM1248A (Akizuki) or AD-12864-SPI (antendo)

Revision:
4:9d99684c6373
Parent:
3:031024851a8d
Child:
5:9b4d9c139186
--- a/main.cpp	Wed Aug 05 05:11:23 2020 +0000
+++ b/main.cpp	Sat Aug 08 04:20:39 2020 +0000
@@ -6,7 +6,7 @@
  *  https://os.mbed.com/users/kenjiArai/
  *      Created: September 14th, 2014
  *      Revised: September 21st, 2014
- *      Revised: August     5th, 2020
+ *      Revised: August     8th, 2020
  */
 /*
     Tested LCD
@@ -27,6 +27,7 @@
 //  Include --------------------------------------------------------------------
 #include    "mbed.h"
 #include    "ST7565_SPI_LCD.h"
+#include    "redirect_stdio.h"
 
 //  Definition -----------------------------------------------------------------
 //#define AITENDO
@@ -49,8 +50,7 @@
 //  Object ---------------------------------------------------------------------
 // LED
 DigitalOut  myled(dp28);
-// com
-BufferedSerial pc(dp16,dp15);
+
 // SPI LCD
 #if defined(AITENDO)
 #   if 1
@@ -147,21 +147,3 @@
         lcd.printf("JH1PJL" );
     }
 }
-
-uint8_t getc(void)
-{
-    uint8_t bf;
-    pc.read(&bf,1);
-    return bf;
-}
-
-void putc(uint8_t c)
-{
-    uint8_t bf = c;
-    pc.write(&bf,1);
-}
-
-FileHandle *mbed::mbed_override_console(int fd)
-{
-    return &pc;
-}