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

@ -98,11 +98,11 @@ void st7735s_init(void)
};
//Initialize non-SPI GPIOs
gpio_reset_pin(ST7735S_DC);
esp_rom_gpio_pad_select_gpio(ST7735S_DC);
gpio_set_direction(ST7735S_DC, GPIO_MODE_OUTPUT);
#if ST7735S_USE_RST
gpio_reset_pin(ST7735S_RST);
esp_rom_gpio_pad_select_gpio(ST7735S_RST);
gpio_set_direction(ST7735S_RST, GPIO_MODE_OUTPUT);
//Reset the display