Update to support ESP-IDF v5 in develop branch
This commit is contained in:
parent
7c6bdc5635
commit
44342b653f
13 changed files with 55 additions and 46 deletions
|
@ -92,7 +92,7 @@ void st7796s_init(void)
|
|||
st7796s_send_data(init_cmds[cmd].data, init_cmds[cmd].databytes & 0x1F);
|
||||
if (init_cmds[cmd].databytes & 0x80)
|
||||
{
|
||||
vTaskDelay(100 / portTICK_RATE_MS);
|
||||
vTaskDelay(pdMS_TO_TICKS(100));
|
||||
}
|
||||
cmd++;
|
||||
}
|
||||
|
@ -203,8 +203,8 @@ static void st7796s_reset(void)
|
|||
{
|
||||
#if ST7796S_USE_RST
|
||||
gpio_set_level(ST7796S_RST, 0);
|
||||
vTaskDelay(100 / portTICK_RATE_MS);
|
||||
vTaskDelay(pdMS_TO_TICKS(100));
|
||||
gpio_set_level(ST7796S_RST, 1);
|
||||
vTaskDelay(100 / portTICK_RATE_MS);
|
||||
vTaskDelay(pdMS_TO_TICKS(100));
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue