gpio_pad_select_gpio -> esp_rom_gpio_pad_select_gpio
This commit is contained in:
parent
735b5df0ff
commit
785b7d5c28
17 changed files with 33 additions and 33 deletions
|
@ -160,11 +160,11 @@ static uint8_t displayType = HX8357D;
|
|||
void hx8357_init(void)
|
||||
{
|
||||
//Initialize non-SPI GPIOs
|
||||
gpio_reset_pin(HX8357_DC);
|
||||
esp_rom_gpio_pad_select_gpio(HX8357_DC);
|
||||
gpio_set_direction(HX8357_DC, GPIO_MODE_OUTPUT);
|
||||
|
||||
#if HX8357_USE_RST
|
||||
gpio_reset_pin(HX8357_RST);
|
||||
esp_rom_gpio_pad_select_gpio(HX8357_RST);
|
||||
gpio_set_direction(HX8357_RST, GPIO_MODE_OUTPUT);
|
||||
|
||||
//Reset the display
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue