Graphic OLED 100x16 pixels interface
Dependents: mbed_nicovideo_search_api mbed_recent_nicovideo_display_pub
- グラフィック有機ELモジュール100x16
- 8×8 ドット日本語フォント「美咲フォント」
- misaki2cpp.py 美咲フォントをC++コードへ変換。
Diff: GraphicOLED.h
- Revision:
- 0:67d983a1ed3e
- Child:
- 1:a104653979bf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GraphicOLED.h Fri Mar 23 09:20:04 2012 +0000 @@ -0,0 +1,23 @@ +// 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 \ No newline at end of file