esp32-warm-water
esp32 based project for the control of a heating element based on temperature
|
implementations of functions for setting up, interacting with and sending commands to an ssd1306 driven screen via spi or i2c More...
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "ssd1306.h"
#include "font8x8_basic.h"
#include "font8x8_readable.h"
#include "font8x8_readable_thin.h"
#include "font8x8_space.h"
Go to the source code of this file.
Macros | |
#define | tag CONFIG_SSD1306_TAG |
tag for logging library More... | |
Variables | |
int | center |
int | top |
int | bottom |
positions for oled More... | |
implementations of functions for setting up, interacting with and sending commands to an ssd1306 driven screen via spi or i2c
Definition in file ssd1306.c.
void ssd1306_clear_line | ( | SSD1306_t * | dev, |
int | page, | ||
bool | invert | ||
) |
clear a specific line (fills the line with spaces)
dev | the screen device to interact with |
page | the line to clear |
invert | whether or not the cleared line should be inverted |
Definition at line 190 of file ssd1306.c.
void ssd1306_clear_screen | ( | SSD1306_t * | dev, |
bool | invert | ||
) |
void ssd1306_contrast | ( | SSD1306_t * | dev, |
int | contrast | ||
) |
void ssd1306_deinit | ( | SSD1306_t * | dev | ) |
void ssd1306_display_image | ( | SSD1306_t * | dev, |
int | page, | ||
int | seg, | ||
uint8_t * | images, | ||
int | width | ||
) |
display an image on the screen
dev | the screen device to interact with |
page | the line to display the image on |
seg | the segment of the image |
images | the image data to display |
width | the width of the image |
Definition at line 159 of file ssd1306.c.
void ssd1306_display_text | ( | SSD1306_t * | dev, |
int | page, | ||
char * | text, | ||
int | text_len, | ||
bool | invert | ||
) |
display some text on the screen
dev | the screen device to interact with |
page | the line to display the text on |
text | the text data |
text_len | the text length |
invert | whether or not to invert the text and background colours |
Definition at line 112 of file ssd1306.c.
void ssd1306_dump | ( | SSD1306_t | dev | ) |
void ssd1306_fadeout | ( | SSD1306_t * | dev | ) |
void ssd1306_flip | ( | uint8_t * | buf, |
size_t | blen | ||
) |
void ssd1306_hardware_scroll | ( | SSD1306_t * | dev, |
ssd1306_scroll_type_t | scroll | ||
) |
void ssd1306_hardware_scroll_line | ( | SSD1306_t * | dev, |
int | page, | ||
ssd1306_scroll_type_t | scroll | ||
) |
void ssd1306_init | ( | SSD1306_t * | dev | ) |
void ssd1306_invert | ( | uint8_t * | buf, |
size_t | blen | ||
) |
uint8_t ssd1306_rotate | ( | uint8_t | ch1 | ) |
void ssd1306_scroll_clear | ( | SSD1306_t * | dev | ) |
void ssd1306_scroll_text | ( | SSD1306_t * | dev, |
char * | text, | ||
int | text_len, | ||
bool | invert | ||
) |
void ssd1306_software_scroll | ( | SSD1306_t * | dev, |
int | start, | ||
int | end | ||
) |
void ssd1306_wrapped_display_text | ( | SSD1306_t * | dev, |
int | line, | ||
char * | text | ||
) |