joseph chen
/
Nucleo_i2c_OLED1234
remote respository
include/I2C_SSD1306Z.h@0:94c1a94c5a47, 2016-05-08 (annotated)
- Committer:
- ittraining
- Date:
- Sun May 08 02:49:10 2016 +0000
- Revision:
- 0:94c1a94c5a47
OLED for text and bmp
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ittraining | 0:94c1a94c5a47 | 1 | // |
ittraining | 0:94c1a94c5a47 | 2 | // SSD1306Z LCD Driver: 0.96" OLED LY096BG30 |
ittraining | 0:94c1a94c5a47 | 3 | // |
ittraining | 0:94c1a94c5a47 | 4 | |
ittraining | 0:94c1a94c5a47 | 5 | |
ittraining | 0:94c1a94c5a47 | 6 | //#define LCD_I2C_SLA 0x3c |
ittraining | 0:94c1a94c5a47 | 7 | #define LCD_I2C_SLA 0x78 |
ittraining | 0:94c1a94c5a47 | 8 | |
ittraining | 0:94c1a94c5a47 | 9 | #define LCD_Xmax 128 |
ittraining | 0:94c1a94c5a47 | 10 | #define LCD_Ymax 64 |
ittraining | 0:94c1a94c5a47 | 11 | #define FG_COLOR 0xFFFF |
ittraining | 0:94c1a94c5a47 | 12 | #define BG_COLOR 0x0000 |
ittraining | 0:94c1a94c5a47 | 13 | |
ittraining | 0:94c1a94c5a47 | 14 | |
ittraining | 0:94c1a94c5a47 | 15 | extern void Init_LCD(void); |
ittraining | 0:94c1a94c5a47 | 16 | extern void clear_LCD(void); |
ittraining | 0:94c1a94c5a47 | 17 | extern void print_C(uint8_t Line, uint8_t Col, char ascii); |
ittraining | 0:94c1a94c5a47 | 18 | extern void printC_5x7(int16_t x, int16_t y, unsigned char ascii_code); |
ittraining | 0:94c1a94c5a47 | 19 | extern void print_Line(uint8_t line, char text[]); |
ittraining | 0:94c1a94c5a47 | 20 | extern void printS(int16_t x, int16_t y, char text[]); |
ittraining | 0:94c1a94c5a47 | 21 | extern void printS_5x7(int16_t x, int16_t y, char text[]); |
ittraining | 0:94c1a94c5a47 | 22 | |
ittraining | 0:94c1a94c5a47 | 23 | extern void draw_Pixel(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor); |
ittraining | 0:94c1a94c5a47 | 24 | extern void draw_Bmp8x8(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 25 | extern void draw_Bmp32x8(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 26 | extern void draw_Bmp120x8(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 27 | extern void draw_Bmp8x16(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 28 | extern void draw_Bmp16x8(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 29 | extern void draw_Bmp16x16(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 30 | extern void draw_Bmp16x24(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 31 | extern void draw_Bmp16x32(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 32 | extern void draw_Bmp16x40(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 33 | extern void draw_Bmp16x48(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 34 | extern void draw_Bmp16x64(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 35 | extern void draw_Bmp32x16(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 36 | extern void draw_Bmp32x32(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 37 | extern void draw_Bmp32x48(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 38 | extern void draw_Bmp32x64(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 39 | extern void draw_Bmp64x64(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]); |
ittraining | 0:94c1a94c5a47 | 40 | extern void draw_LCD(unsigned char *buffer); |
ittraining | 0:94c1a94c5a47 | 41 |