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
|
@ -91,13 +91,13 @@ void ili9341_init(void)
|
|||
#endif
|
||||
|
||||
//Initialize non-SPI GPIOs
|
||||
//gpio_pad_select_gpio(ILI9341_DC);
|
||||
gpio_reset_pin(ILI9341_DC);
|
||||
gpio_set_direction(ILI9341_DC, GPIO_MODE_OUTPUT);
|
||||
//gpio_pad_select_gpio(ILI9341_RST);
|
||||
gpio_reset_pin(ILI9341_RST);
|
||||
gpio_set_direction(ILI9341_RST, GPIO_MODE_OUTPUT);
|
||||
|
||||
#if ILI9341_ENABLE_BACKLIGHT_CONTROL
|
||||
//gpio_pad_select_gpio(ILI9341_BCKL);
|
||||
gpio_reset_pin(ILI9341_BCKL);
|
||||
gpio_set_direction(ILI9341_BCKL, GPIO_MODE_OUTPUT);
|
||||
#endif
|
||||
//Reset the display
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue