main/u8g2_esp32_hal.c

changeset 39
c3fcc599a119
parent 37
358bbd5b608e
child 55
43362bb8f3c0
equal deleted inserted replaced
38:46e2c385e9de 39:c3fcc599a119
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

mercurial