joseph chen / Mbed 2 deprecated Nucleo_i2c_OLED1234

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers I2C_SSD1306Z.h Source File

I2C_SSD1306Z.h

00001 //
00002 // SSD1306Z LCD Driver: 0.96" OLED LY096BG30
00003 //
00004 
00005 
00006 //#define LCD_I2C_SLA        0x3c
00007 #define LCD_I2C_SLA        0x78
00008 
00009 #define LCD_Xmax 128
00010 #define LCD_Ymax 64
00011 #define FG_COLOR 0xFFFF
00012 #define BG_COLOR 0x0000
00013 
00014 
00015 extern void Init_LCD(void);
00016 extern void clear_LCD(void);
00017 extern void print_C(uint8_t Line, uint8_t Col, char ascii);
00018 extern void printC_5x7(int16_t x, int16_t y, unsigned char ascii_code);
00019 extern void print_Line(uint8_t line, char text[]);
00020 extern void printS(int16_t x, int16_t y, char text[]);
00021 extern void printS_5x7(int16_t x, int16_t y, char text[]);
00022 
00023 extern void draw_Pixel(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor);
00024 extern void draw_Bmp8x8(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00025 extern void draw_Bmp32x8(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00026 extern void draw_Bmp120x8(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00027 extern void draw_Bmp8x16(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00028 extern void draw_Bmp16x8(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00029 extern void draw_Bmp16x16(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00030 extern void draw_Bmp16x24(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00031 extern void draw_Bmp16x32(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00032 extern void draw_Bmp16x40(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00033 extern void draw_Bmp16x48(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00034 extern void draw_Bmp16x64(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00035 extern void draw_Bmp32x16(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00036 extern void draw_Bmp32x32(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00037 extern void draw_Bmp32x48(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00038 extern void draw_Bmp32x64(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00039 extern void draw_Bmp64x64(int16_t x, int16_t y, uint16_t fgColor, uint16_t bgColor, unsigned char bitmap[]);
00040 extern void draw_LCD(unsigned char *buffer);
00041