|
IoT25S IoT Klocka 0.1
Grupparbete för IoT25S på Jensen YH
|
Internal I2C + U8G2 display integration APIs. More...
#include <stddef.h>#include <stdbool.h>#include <stdint.h>#include "driver/gpio.h"#include "driver/i2c_master.h"#include "esp_err.h"#include "u8g2.h"
Include dependency graph for priv_i2c_u8g2.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | i2c_u8g2_config_t |
| Configuration for I2C-backed U8G2 display initialization. More... | |
| struct | i2c_u8g2_handle_t |
| Display handle containing runtime driver state. More... | |
Macros | |
| #define | I2C_U8G2_TX_BUFFER_SIZE 132 |
Typedefs | |
| typedef void(* | i2c_u8g2_setup_fn_t) (u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) |
| U8G2 setup callback signature. | |
Functions | |
| i2c_u8g2_config_t | i2c_u8g2_config_default (void) |
| Fill a config with menuconfig-backed defaults. | |
| esp_err_t | i2c_u8g2_init (i2c_u8g2_handle_t *handle, const i2c_u8g2_config_t *config) |
| Initialize I2C bus and U8G2 display. | |
| esp_err_t | i2c_u8g2_deinit (i2c_u8g2_handle_t *handle) |
| Deinitialize display device and I2C bus. | |
| u8g2_t * | i2c_u8g2_get_u8g2 (i2c_u8g2_handle_t *handle) |
| Get the U8G2 object for draw operations. | |
| esp_err_t | i2c_u8g2_set_power_save (i2c_u8g2_handle_t *handle, bool enable) |
| Set display power save mode. | |
| void | demo_text_display (u8g2_t *u8g2) |
| Demo helper for text rendering tests. | |
Internal I2C + U8G2 display integration APIs.
Definition in file priv_i2c_u8g2.h.
| #define I2C_U8G2_TX_BUFFER_SIZE 132 |
Definition at line 20 of file priv_i2c_u8g2.h.
| typedef void(* i2c_u8g2_setup_fn_t) (u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) |
U8G2 setup callback signature.
Definition at line 25 of file priv_i2c_u8g2.h.
| void demo_text_display | ( | u8g2_t * | u8g2 | ) |
Demo helper for text rendering tests.
| u8g2 | Initialized U8G2 object. |
| i2c_u8g2_config_t i2c_u8g2_config_default | ( | void | ) |
Fill a config with menuconfig-backed defaults.
Definition at line 241 of file priv_i2c_u8g2.c.
Here is the caller graph for this function:| esp_err_t i2c_u8g2_deinit | ( | i2c_u8g2_handle_t * | handle | ) |
Deinitialize display device and I2C bus.
Definition at line 367 of file priv_i2c_u8g2.c.
| u8g2_t * i2c_u8g2_get_u8g2 | ( | i2c_u8g2_handle_t * | handle | ) |
Get the U8G2 object for draw operations.
Definition at line 394 of file priv_i2c_u8g2.c.
Here is the caller graph for this function:| esp_err_t i2c_u8g2_init | ( | i2c_u8g2_handle_t * | handle, |
| const i2c_u8g2_config_t * | config | ||
| ) |
Initialize I2C bus and U8G2 display.
If config->setup_fn is NULL, defaults to SSD1306 128x64 noname full buffer setup.
Definition at line 257 of file priv_i2c_u8g2.c.
Here is the call graph for this function:
Here is the caller graph for this function:| esp_err_t i2c_u8g2_set_power_save | ( | i2c_u8g2_handle_t * | handle, |
| bool | enable | ||
| ) |
Set display power save mode.
Definition at line 402 of file priv_i2c_u8g2.c.