Graphic OLED 100x16 pixels interface

Dependents:   mbed_nicovideo_search_api mbed_recent_nicovideo_display_pub

/media/uploads/va009039/graphicoled_1.jpg

Revision:
1:a104653979bf
Parent:
0:67d983a1ed3e
Child:
2:337a2655f815
--- a/GraphicOLED.cpp	Fri Mar 23 09:20:04 2012 +0000
+++ b/GraphicOLED.cpp	Wed Apr 18 10:17:51 2012 +0000
@@ -4,10 +4,9 @@
 
 extern void font_4x8(char buf[], int i);
 extern void font_8x8(char buf[], int i);
-extern void font_8x8_sd(char buf[], int i);
 
-GraphicOLED::GraphicOLED(PinName rs, PinName e, PinName d0, PinName d1, PinName d2, PinName d3):
-        TextLCD(rs, e, d0, d1, d2, d3)
+GraphicOLED::GraphicOLED(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7):
+        TextLCD(rs, e, d4, d5, d6, d7)
 {
     wait_ms(500); // wait 500ms
     writeCommand(0x00); // 0x0 x 5
@@ -43,6 +42,8 @@
             g_wrtie(0x00, x, y);
         }
     }
+    locate(0,0);
+    _kanji_flag = false;
 }
 
 int GraphicOLED::columns() { return 25; }