GT20L16J1Y 16x16 Japanese font ROM access library
Dependents: UTF-8_test hello_GT20L16J1Y_FONT GSDPlayer Nucleo_AQM1248A ... more
Diff: GT20L16J1Y_font.h
- Revision:
- 2:aed20a7685b9
- Parent:
- 1:cacab63ea210
diff -r cacab63ea210 -r aed20a7685b9 GT20L16J1Y_font.h --- a/GT20L16J1Y_font.h Sun Apr 20 05:36:32 2014 +0000 +++ b/GT20L16J1Y_font.h Thu Sep 04 06:54:40 2014 +0000 @@ -1,15 +1,8 @@ #include "mbed.h" -/** -* GT20L16J1Y font ROM access class -*/ + class GT20L16J1Y_FONT { public: - /** Default constructor - */ GT20L16J1Y_FONT(); - - /** Destructor - */ virtual ~GT20L16J1Y_FONT() {}; /** Create a GT20L16J1Y font ROM connected to the specified pins @@ -19,7 +12,7 @@ * @param sclk Serial clock input pin to connect to * @param cs Chip enable input pin to connect to */ - GT20L16J1Y_FONT(PinName mosi, PinName miso, PinName sclk, PinName cs) : _spi(mosi, miso, sclk), _CS(cs) {}; + GT20L16J1Y_FONT(PinName mosi, PinName miso, PinName sclk, PinName cs); /** Read font data from SJIS code * @@ -27,6 +20,13 @@ */ void read(unsigned short code); + /** Read font data from Ku-Ten code + * + * @param code Japanese Kanji font code (Kuten code [15:8] Ku, [7:0] Ten) + * @return font width (8 or 16) + */ + int read_kuten(unsigned short code); + unsigned char bitmap[32]; private: