Graphic Display v1.0.0
Control any mochrome display, with any microcontroller, in any amount.
|
#include "ssd1306.h"
Macros | |
#define | _PIN_HIGH 1 |
#define | _PIN_LOW 0 |
#define | _SUCCESS 0 |
#define | _SSD_ERROR_CHECK(x) if (x != _SUCCESS) { return SSD1306_FAIL; } |
Functions | |
static void | _delay_ms (ssd1306_t *ssd1306, uint32_t ms) |
static void | _pin_reset (ssd1306_t *ssd1306, uint8_t Signal) |
static void | _pin_dc (ssd1306_t *ssd1306, uint8_t Signal) |
static void | _pin_cs (ssd1306_t *ssd1306, uint8_t Signal) |
static uint8_t | _spi_write (ssd1306_t *ssd1306, uint8_t *data, uint32_t len) |
static uint8_t | _i2c_write (ssd1306_t *ssd1306, uint8_t reg, uint8_t *data, uint32_t len) |
static uint8_t | _write_data (ssd1306_t *ssd1306, uint8_t *data, uint32_t len) |
static uint8_t | _write_command (ssd1306_t *ssd1306, uint8_t cmd) |
static void | _reset (ssd1306_t *ssd1306) |
static void | _mtx_lock (ssd1306_t *ssd1306) |
static void | _mtx_unlock (ssd1306_t *ssd1306) |
uint8_t | SSD1306_Init (ssd1306_t *ssd1306, ssd1306_params_t *params) |
uint8_t | SSD1306_SetFrameBuffer (ssd1306_t *ssd1306, uint8_t *pu8FrameBuffer) |
uint8_t | SSD1306_SetContrast (ssd1306_t *ssd1306, uint8_t level) |
uint8_t | SSD1306_SetDisplayOn (ssd1306_t *ssd1306, bool on) |
uint8_t | SSD1306_Refresh (ssd1306_t *ssd1306) |
uint8_t | SSD1306_Write (ssd1306_t *ssd1306, uint32_t x, uint32_t y, bool color) |
uint8_t | SSD1306_Fill (ssd1306_t *ssd1306, uint8_t color) |
#define _PIN_HIGH 1 |
#define _PIN_LOW 0 |
#define _SSD_ERROR_CHECK | ( | x | ) | if (x != _SUCCESS) { return SSD1306_FAIL; } |
#define _SUCCESS 0 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
uint8_t SSD1306_Fill | ( | ssd1306_t * | ssd1306, |
uint8_t | color ) |
uint8_t SSD1306_Init | ( | ssd1306_t * | ssd1306, |
ssd1306_params_t * | params ) |
uint8_t SSD1306_Refresh | ( | ssd1306_t * | ssd1306 | ) |
uint8_t SSD1306_SetContrast | ( | ssd1306_t * | ssd1306, |
uint8_t | level ) |
uint8_t SSD1306_SetDisplayOn | ( | ssd1306_t * | ssd1306, |
bool | on ) |
uint8_t SSD1306_SetFrameBuffer | ( | ssd1306_t * | ssd1306, |
uint8_t * | pu8FrameBuffer ) |
uint8_t SSD1306_Write | ( | ssd1306_t * | ssd1306, |
uint32_t | x, | ||
uint32_t | y, | ||
bool | color ) |