C12832 LCD kanji interface.
Fork of GraphicOLED by
- 8×8 ドット日本語フォント「美咲フォント」
- misaki2cpp.py 美咲フォントをC++コードへ変換。
- app-board-LCD
GraphicOLED.h
- Committer:
- va009039
- Date:
- 2012-03-23
- Revision:
- 0:67d983a1ed3e
- Child:
- 1:a104653979bf
File content as of revision 0:67d983a1ed3e:
// GraphicOLED.h #ifndef MBED_GRAPHIC_OLED_H #define MBED_GRAPHIC_OLED_H #include "TextLCD.h" #define iskanji(c) ((c)>=0x81 && (c)<=0x9F || (c)>=0xE0 && (c)<=0xFC) #define iskanji2(c) ((c)>=0x40 && (c)<=0xFC && (c)!=0x7F) class GraphicOLED : public TextLCD { public: GraphicOLED(PinName rs, PinName e, PinName d0, PinName d1, PinName d2, PinName d3); void g_wrtie(int pat, int x, int y); void g_wrtie(char *buf, int len, int x, int y); void cls(); int columns(); protected: virtual int _putc(int value); void character(int column, int row, int c); void character2(int column, int row, int c); bool _kanji_flag; int _kanji_1st; }; #endif