NuMaker-PFM-NUC472: I2C1 LCD draw a moving circle

Committer:
ccli8
Date:
Tue Jul 11 13:41:06 2017 +0800
Revision:
1:219b99b987f0
Parent:
0:72afeb131817
Update mbed-os to mbed-os-5.5.2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rkuo2000 0:72afeb131817 1 #define LCD_Xmax 128
rkuo2000 0:72afeb131817 2 #define LCD_Ymax 64
rkuo2000 0:72afeb131817 3 #define FG_COLOR 0xFFFF
rkuo2000 0:72afeb131817 4 #define BG_COLOR 0x0000
rkuo2000 0:72afeb131817 5
rkuo2000 0:72afeb131817 6 #define SSD1306_slave_addr 0x78
rkuo2000 0:72afeb131817 7
rkuo2000 0:72afeb131817 8 class SSD1306 {
rkuo2000 0:72afeb131817 9 public:
rkuo2000 0:72afeb131817 10 void initialize(void);
rkuo2000 0:72afeb131817 11 void clearscreen(void);
rkuo2000 0:72afeb131817 12 void printC_5x7(int x, int y, unsigned char ascii_code);
rkuo2000 0:72afeb131817 13 void printC(int x, int y, unsigned char ascii_code);
rkuo2000 0:72afeb131817 14 void printLine(int line, char text[]);
rkuo2000 0:72afeb131817 15 void printS(int x, int y, char text[]);
rkuo2000 0:72afeb131817 16 void printS_5x7(int x, int y, char text[]);
rkuo2000 0:72afeb131817 17 void drawPixel(int x, int y, int fgColor, int bgColor);
rkuo2000 0:72afeb131817 18 void drawBmp8x8(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 19 void drawBmp32x8(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 20 void drawBmp120x8(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 21 void drawBmp8x16(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 22 void drawBmp16x8(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 23 void drawBmp16x16(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 24 void drawBmp16x24(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 25 void drawBmp16x32(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 26 void drawBmp16x40(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 27 void drawBmp16x48(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 28 void drawBmp16x64(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 29 void drawBmp32x16(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 30 void drawBmp32x32(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 31 void drawBmp32x48(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 32 void drawBmp32x64(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 33 void drawBmp64x64(int x, int y, int fgColor, int bgColor, unsigned char bitmap[]);
rkuo2000 0:72afeb131817 34 void drawBMP(unsigned char *buffer);
rkuo2000 0:72afeb131817 35 };