gpio_pad_select_gpio -> esp_rom_gpio_pad_select_gpio

This commit is contained in:
hiruna 2023-05-26 22:50:04 +10:00
parent 735b5df0ff
commit 785b7d5c28
17 changed files with 33 additions and 33 deletions

View file

@ -82,11 +82,11 @@ void st7796s_init(void)
};
//Initialize non-SPI GPIOs
gpio_reset_pin(ST7796S_DC);
esp_rom_gpio_pad_select_gpio(ST7796S_DC);
gpio_set_direction(ST7796S_DC, GPIO_MODE_OUTPUT);
#if ST7796S_USE_RST
gpio_reset_pin(ST7796S_RST);
esp_rom_gpio_pad_select_gpio(ST7796S_RST);
gpio_set_direction(ST7796S_RST, GPIO_MODE_OUTPUT);
//Reset the display