SSD1306 Library
1.0.0
Library for SSD1306 OLed Driver based on libohiboard
|
Go to the documentation of this file.
28 #ifndef __WARCOMEB_SSD1306_H
29 #define __WARCOMEB_SSD1306_H
123 #define WARCOMEB_SSD1306_LIBRARY_VERSION_MAJOR (0x1ul)
124 #define WARCOMEB_SSD1306_LIBRARY_VERSION_MINOR (0x0ul)
125 #define WARCOMEB_SSD1306_LIBRARY_VERSION_BUG (0x0ul)
126 #define WARCOMEB_SSD1306_LIBRARY_VERSION ((WARCOMEB_SSD1306_LIBRARY_VERSION_MAJOR << 16)\
127 |(WARCOMEB_SSD1306_LIBRARY_VERSION_MINOR << 8 )\
128 |(WARCOMEB_SSD1306_LIBRARY_VERSION_BUG ))
129 #define WARCOMEB_SSD1306_LIBRARY_TIME 1569878719
132 #include "../GDL/gdl.h"
134 #define SSD1306_MAX_DISPLAY_HEIGHT 64
135 #define SSD1306_MAX_DISPLAY_WIDTH 128
136 #define SSD1306_BUFFER_DIMENSION (SSD1306_MAX_DISPLAY_WIDTH*SSD1306_MAX_DISPLAY_HEIGHT/8)
168 #if defined (LIBOHIBOARD_IIC)
170 Iic_DeviceHandle iicDev;
171 Iic_Config iicConfig;
175 #if defined (LIBOHIBOARD_SPI)
195 #if defined (LIBOHIBOARD_IIC)
374 const uint8_t* picture);
453 #endif // __WARCOMEB_SSD1306_H
void SSD1306_setContrast(SSD1306_DeviceHandle_t dev, uint8_t value)
Definition: ssd1306.c:550
Gpio_Pins rstPin
Definition: ssd1306.h:166
void SSD1306_init(SSD1306_DeviceHandle_t dev, SSD1306_Config_t *config)
Definition: ssd1306.c:208
SSD1306_Config_t config
Definition: ssd1306.h:189
struct _SSD1306_Device_t * SSD1306_DeviceHandle_t
Gpio_Pins dc
Definition: ssd1306.h:152
uint16_t product
Definition: ssd1306.h:149
void SSD1306_drawLine(SSD1306_DeviceHandle_t dev, uint8_t xStart, uint8_t yStart, uint8_t xStop, uint8_t yStop, SSD1306_Color_t color)
Definition: ssd1306.c:406
void SSD1306_inverseDisplay(SSD1306_DeviceHandle_t dev)
Definition: ssd1306.c:496
Gpio_Pins d6
Definition: ssd1306.h:163
Definition: ssd1306.h:185
Gpio_Pins wr
Definition: ssd1306.h:155
uint8_t page
Definition: ssd1306.h:199
uint8_t column
Definition: ssd1306.h:200
bool isChargePump
Definition: ssd1306.h:191
Gpio_Pins rs
Definition: ssd1306.h:153
Gpio_Pins d3
Definition: ssd1306.h:160
Gpio_Pins d7
Definition: ssd1306.h:164
Gpio_Pins d0
Definition: ssd1306.h:157
Gpio_Pins d4
Definition: ssd1306.h:161
GDL_Errors_t SSD1306_drawPicture(SSD1306_DeviceHandle_t dev, uint16_t xPos, uint16_t yPos, uint16_t width, uint16_t height, const uint8_t *picture)
Definition: ssd1306.c:486
Gpio_Pins cs
Definition: ssd1306.h:154
GDL_Device_t gdl
Definition: ssd1306.h:187
struct _SSD1306_Config_t SSD1306_Config_t
void SSD1306_drawHLine(SSD1306_DeviceHandle_t dev, uint8_t xStart, uint8_t yStart, uint8_t width, SSD1306_Color_t color)
Definition: ssd1306.c:419
void SSD1306_clear(SSD1306_DeviceHandle_t dev)
Definition: ssd1306.c:532
Gpio_Pins d2
Definition: ssd1306.h:159
uint8_t protocolType
Definition: ssd1306.h:193
GDL_Errors_t SSD1306_drawChar(SSD1306_DeviceHandle_t dev, uint16_t xPos, uint16_t yPos, uint8_t c, uint8_t color, uint8_t size)
Definition: ssd1306.c:451
#define SSD1306_BUFFER_DIMENSION
Definition: ssd1306.h:136
void SSD1306_drawVLine(SSD1306_DeviceHandle_t dev, uint8_t xStart, uint8_t yStart, uint8_t height, SSD1306_Color_t color)
Definition: ssd1306.c:428
struct _SSD1306_Device_t SSD1306_Device_t
Definition: ssd1306.h:147
void SSD1306_off(SSD1306_DeviceHandle_t dev)
Definition: ssd1306.c:545
GDL_Errors_t SSD1306_drawString(SSD1306_DeviceHandle_t dev, uint16_t xPos, uint16_t yPos, const char *text, uint8_t color, uint8_t size)
Definition: ssd1306.c:468
void SSD1306_flush(SSD1306_DeviceHandle_t dev)
Definition: ssd1306.c:518
GDL_Errors_t SSD1306_drawPixel(SSD1306_DeviceHandle_t dev, uint8_t xPos, uint8_t yPos, SSD1306_Color_t color)
Definition: ssd1306.c:388
void SSD1306_drawRectangle(SSD1306_DeviceHandle_t dev, uint16_t xStart, uint16_t yStart, uint16_t width, uint16_t height, uint8_t color, bool isFill)
Definition: ssd1306.c:437
uint8_t buffer[SSD1306_BUFFER_DIMENSION]
Definition: ssd1306.h:203
void SSD1306_normalDisplay(SSD1306_DeviceHandle_t dev)
Definition: ssd1306.c:501
Gpio_Pins d1
Definition: ssd1306.h:158
Gpio_Pins d5
Definition: ssd1306.h:162
void SSD1306_scroll(SSD1306_DeviceHandle_t dev, bool scroll)
Definition: ssd1306.c:506
Gpio_Pins rd
Definition: ssd1306.h:151
enum _SSD1306_Color_t SSD1306_Color_t
void SSD1306_on(SSD1306_DeviceHandle_t dev)
Definition: ssd1306.c:540