SSD1306 Library  1.0.0
Library for SSD1306 OLed Driver based on libohiboard
ssd1306.h File Reference
#include "ssd1306type.h"
#include "../GDL/gdl.h"

Go to the source code of this file.

Data Structures

struct  _SSD1306_Config_t
 
struct  _SSD1306_Device_t
 

Macros

#define WARCOMEB_SSD1306_LIBRARY_VERSION_MAJOR   (0x1ul)
 
#define WARCOMEB_SSD1306_LIBRARY_VERSION_MINOR   (0x0ul)
 
#define WARCOMEB_SSD1306_LIBRARY_VERSION_BUG   (0x0ul)
 
#define WARCOMEB_SSD1306_LIBRARY_VERSION
 
#define WARCOMEB_SSD1306_LIBRARY_TIME   1569878719
 
#define SSD1306_MAX_DISPLAY_HEIGHT   64
 
#define SSD1306_MAX_DISPLAY_WIDTH   128
 
#define SSD1306_BUFFER_DIMENSION   (SSD1306_MAX_DISPLAY_WIDTH*SSD1306_MAX_DISPLAY_HEIGHT/8)
 

Typedefs

typedef struct _SSD1306_Config_t SSD1306_Config_t
 
typedef struct _SSD1306_Device_t SSD1306_Device_t
 
typedef struct _SSD1306_Device_tSSD1306_DeviceHandle_t
 

Functions

void SSD1306_init (SSD1306_DeviceHandle_t dev, SSD1306_Config_t *config)
 
GDL_Errors_t SSD1306_drawPixel (SSD1306_DeviceHandle_t dev, uint8_t xPos, uint8_t yPos, SSD1306_Color_t color)
 
void SSD1306_drawLine (SSD1306_DeviceHandle_t dev, uint8_t xStart, uint8_t yStart, uint8_t xStop, uint8_t yStop, SSD1306_Color_t color)
 
void SSD1306_drawHLine (SSD1306_DeviceHandle_t dev, uint8_t xStart, uint8_t yStart, uint8_t width, SSD1306_Color_t color)
 
void SSD1306_drawVLine (SSD1306_DeviceHandle_t dev, uint8_t xStart, uint8_t yStart, uint8_t height, SSD1306_Color_t color)
 
void SSD1306_drawRectangle (SSD1306_DeviceHandle_t dev, uint16_t xStart, uint16_t yStart, uint16_t width, uint16_t height, uint8_t color, bool isFill)
 
GDL_Errors_t SSD1306_drawChar (SSD1306_DeviceHandle_t dev, uint16_t xPos, uint16_t yPos, uint8_t c, uint8_t color, uint8_t size)
 
GDL_Errors_t SSD1306_drawString (SSD1306_DeviceHandle_t dev, uint16_t xPos, uint16_t yPos, const char *text, uint8_t color, uint8_t size)
 
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)
 
void SSD1306_inverseDisplay (SSD1306_DeviceHandle_t dev)
 
void SSD1306_normalDisplay (SSD1306_DeviceHandle_t dev)
 
void SSD1306_scroll (SSD1306_DeviceHandle_t dev, bool scroll)
 
void SSD1306_clear (SSD1306_DeviceHandle_t dev)
 
void SSD1306_flush (SSD1306_DeviceHandle_t dev)
 
void SSD1306_on (SSD1306_DeviceHandle_t dev)
 
void SSD1306_off (SSD1306_DeviceHandle_t dev)
 
void SSD1306_setContrast (SSD1306_DeviceHandle_t dev, uint8_t value)