15#ifndef __FW_SSD1306_H__
16#define __FW_SSD1306_H__
25#ifndef SSD1306_I2C_ADDR
26#define SSD1306_I2C_ADDR 0x78
33#define SSD1306_WIDTH 128
37#define SSD1306_HEIGHT 64
40#ifndef SSD1306_TIMEOUT
41#define SSD1306_TIMEOUT 20000
45#define SSD1306_COLOR_BLACK 0x00
47#define SSD1306_COLOR_WHITE 0x01
void SSD1306_WriteCommand(uint8_t command)
Writes single byte command to slave.
void SSD1306_ToggleInvert(void)
Toggles pixels invertion inside internal RAM.
void SSD1306_GotoXY(uint16_t x, uint16_t y)
Sets cursor pointer to desired location for strings.
void SSD1306_DrawPixel(uint16_t x, uint16_t y, uint8_t color)
Draws pixel at desired location.
void SSD1306_UpdateScreen(void)
Updates buffer from internal RAM to LCD.
void SSD1306_DrawLine(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t c)
Draws line on LCD.
void SSD1306_WriteData(uint8_t dat)
Writes single byte data to slave.
void SSD1306_Fill(uint8_t Color)
Fills entire LCD with desired color.