updated gpio_pad_select_gpio to gpio_reset_pin
This commit is contained in:
parent
2440b9b434
commit
335d444e45
14 changed files with 36 additions and 36 deletions
|
@ -88,16 +88,16 @@ void st7789_init(void)
|
|||
};
|
||||
|
||||
//Initialize non-SPI GPIOs
|
||||
//gpio_pad_select_gpio(ST7789_DC);
|
||||
gpio_reset_pin(ST7789_DC);
|
||||
gpio_set_direction(ST7789_DC, GPIO_MODE_OUTPUT);
|
||||
|
||||
#if !defined(CONFIG_LV_DISP_ST7789_SOFT_RESET)
|
||||
//gpio_pad_select_gpio(ST7789_RST);
|
||||
gpio_reset_pin(ST7789_RST);
|
||||
gpio_set_direction(ST7789_RST, GPIO_MODE_OUTPUT);
|
||||
#endif
|
||||
|
||||
#if ST7789_ENABLE_BACKLIGHT_CONTROL
|
||||
//gpio_pad_select_gpio(ST7789_BCKL);
|
||||
gpio_reset_pin(ST7789_BCKL);
|
||||
gpio_set_direction(ST7789_BCKL, GPIO_MODE_OUTPUT);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue