8 #include "freertos/task.h" |
8 #include "freertos/task.h" |
9 |
9 |
10 #include "u8g2_esp32_hal.h" |
10 #include "u8g2_esp32_hal.h" |
11 |
11 |
12 static const char *TAG = "u8g2_hal"; |
12 static const char *TAG = "u8g2_hal"; |
13 static const unsigned int I2C_TIMEOUT_MS = 1000; |
13 static const unsigned int I2C_TIMEOUT_MS = 5000; |
14 |
14 |
15 static spi_device_handle_t handle_spi; // SPI handle. |
15 static spi_device_handle_t handle_spi; // SPI handle. |
16 static i2c_cmd_handle_t handle_i2c; // I2C handle. |
16 static i2c_cmd_handle_t handle_i2c; // I2C handle. |
17 static u8g2_esp32_hal_t u8g2_esp32_hal; // HAL state data. |
17 static u8g2_esp32_hal_t u8g2_esp32_hal; // HAL state data. |
18 |
18 |