![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
mbed I2C LCD draw bitmap
ssd1306.h@0:5880b78ceccc, 2016-10-21 (annotated)
- Committer:
- rkuo2000
- Date:
- Fri Oct 21 03:34:21 2016 +0000
- Revision:
- 0:5880b78ceccc
mbed I2C LCD draw bitmap
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rkuo2000 | 0:5880b78ceccc | 1 | #define LCD_Xmax 128 |
rkuo2000 | 0:5880b78ceccc | 2 | #define LCD_Ymax 64 |
rkuo2000 | 0:5880b78ceccc | 3 | #define FG_COLOR 0xFFFF |
rkuo2000 | 0:5880b78ceccc | 4 | #define BG_COLOR 0x0000 |
rkuo2000 | 0:5880b78ceccc | 5 | |
rkuo2000 | 0:5880b78ceccc | 6 | #define SSD1306_slave_addr 0x78 |
rkuo2000 | 0:5880b78ceccc | 7 | |
rkuo2000 | 0:5880b78ceccc | 8 | class SSD1306 { |
rkuo2000 | 0:5880b78ceccc | 9 | public: |
rkuo2000 | 0:5880b78ceccc | 10 | void initialize(void); |
rkuo2000 | 0:5880b78ceccc | 11 | void clearscreen(void); |
rkuo2000 | 0:5880b78ceccc | 12 | void printC_5x7(int x, int y, unsigned char ascii_code); |
rkuo2000 | 0:5880b78ceccc | 13 | void printC(int x, int y, unsigned char ascii_code); |
rkuo2000 | 0:5880b78ceccc | 14 | void printLine(int line, char text[]); |
rkuo2000 | 0:5880b78ceccc | 15 | void printS(int x, int y, char text[]); |
rkuo2000 | 0:5880b78ceccc | 16 | void printS_5x7(int x, int y, char text[]); |
rkuo2000 | 0:5880b78ceccc | 17 | void drawPixel(int x, int y, int fgColor, int bgColor); |
rkuo2000 | 0:5880b78ceccc | 18 | void drawBmp8x8(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 19 | void drawBmp32x8(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 20 | void drawBmp120x8(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 21 | void drawBmp8x16(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 22 | void drawBmp16x8(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 23 | void drawBmp16x16(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 24 | void drawBmp16x24(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 25 | void drawBmp16x32(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 26 | void drawBmp16x40(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 27 | void drawBmp16x48(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 28 | void drawBmp16x64(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 29 | void drawBmp32x16(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 30 | void drawBmp32x32(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 31 | void drawBmp32x48(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 32 | void drawBmp32x64(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 33 | void drawBmp64x64(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]); |
rkuo2000 | 0:5880b78ceccc | 34 | void drawBMP(unsigned char *buffer); |
rkuo2000 | 0:5880b78ceccc | 35 | }; |