|
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 i2c More...
#include <string.h>#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "driver/i2c.h"#include "esp_log.h"#include "ssd1306.h"
Go to the source code of this file.
Macros | |
| #define | tag CONFIG_SSD1306_I2C_TAG |
| tag for logging library More... | |
Functions | |
| void | i2c_master_init (SSD1306_t *dev, int16_t sda, int16_t scl, int16_t reset) |
| void | i2c_init (SSD1306_t *dev, int width, int height) |
| void | i2c_display_image (SSD1306_t *dev, int page, int seg, uint8_t *images, int width) |
| void | i2c_contrast (SSD1306_t *dev, int contrast) |
| void | i2c_hardware_scroll (SSD1306_t *dev, ssd1306_scroll_type_t scroll) |
| void | i2c_hardware_scroll_line (SSD1306_t *dev, int page, ssd1306_scroll_type_t scroll) |
implementations of functions for setting up, interacting with and sending commands to an ssd1306 driven screen via i2c
Definition in file ssd1306_i2c.c.
| #define tag CONFIG_SSD1306_I2C_TAG |
tag for logging library
Definition at line 41 of file ssd1306_i2c.c.
| void i2c_contrast | ( | SSD1306_t * | dev, |
| int | contrast | ||
| ) |
set the contrast of the screen
| dev | the screen device to interact with |
| contrast | the level of contrast |
Definition at line 211 of file ssd1306_i2c.c.

| void i2c_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_i2c.c.

| void i2c_hardware_scroll | ( | SSD1306_t * | dev, |
| ssd1306_scroll_type_t | scroll | ||
| ) |
send the command for a continues scroll via hardware
| dev | the screen device to interact with |
| scroll | the direction of the scroll |
Definition at line 236 of file ssd1306_i2c.c.

| void i2c_hardware_scroll_line | ( | SSD1306_t * | dev, |
| int | page, | ||
| ssd1306_scroll_type_t | scroll | ||
| ) |
send the command for a continues scroll via hardware
| dev | the screen device to interact with |
| page | the specific page to scroll |
| scroll | the direction of the scroll |
Definition at line 335 of file ssd1306_i2c.c.

| void i2c_init | ( | SSD1306_t * | dev, |
| int | width, | ||
| int | height | ||
| ) |
initialise the screen i2c session
| dev | the screen device to interact with |
| width | the width of the screen |
| height | the height of the screen |
Definition at line 80 of file ssd1306_i2c.c.

| void i2c_master_init | ( | SSD1306_t * | dev, |
| int16_t | sda, | ||
| int16_t | scl, | ||
| int16_t | reset | ||
| ) |
initialise an i2c device
| dev | the device to interact with |
| sda | the pin to use for SDA |
| scl | the pin to use for SCL |
| reset | the reset pin to use |
Definition at line 50 of file ssd1306_i2c.c.
