diff --git a/components/retro-go/rg_display.c b/components/retro-go/rg_display.c index c481b1a16..56fd256a7 100644 --- a/components/retro-go/rg_display.c +++ b/components/retro-go/rg_display.c @@ -249,6 +249,14 @@ static void lcd_init(void) gpio_set_direction(RG_GPIO_LCD_DC, GPIO_MODE_OUTPUT); gpio_set_level(RG_GPIO_LCD_DC, 1); +#if defined(RG_GPIO_LCD_RST) + gpio_set_direction(RG_GPIO_LCD_RST, GPIO_MODE_OUTPUT); + gpio_set_level(RG_GPIO_LCD_RST, 0); + usleep(100 * 1000); + gpio_set_level(RG_GPIO_LCD_RST, 1); + usleep(10 * 1000); +#endif + ILI9341_CMD(0x01); // Reset usleep(5 * 1000); // Wait 5ms after reset ILI9341_CMD(0x3A, 0X05); // Pixel Format Set RGB565 diff --git a/components/retro-go/targets/esplay-micro/config.h b/components/retro-go/targets/esplay-micro/config.h index a1e1a3c15..d3fd1dfd7 100644 --- a/components/retro-go/targets/esplay-micro/config.h +++ b/components/retro-go/targets/esplay-micro/config.h @@ -111,6 +111,7 @@ #define RG_GPIO_LCD_CS GPIO_NUM_5 #define RG_GPIO_LCD_DC GPIO_NUM_12 #define RG_GPIO_LCD_BCKL GPIO_NUM_27 +// #define RG_GPIO_LCD_RST GPIO_NUM_NC // External I2S DAC #define RG_GPIO_SND_I2S_BCK GPIO_NUM_26 diff --git a/components/retro-go/targets/esplay-s3/config.h b/components/retro-go/targets/esplay-s3/config.h index 89ccc15f2..0dccf6fd3 100644 --- a/components/retro-go/targets/esplay-s3/config.h +++ b/components/retro-go/targets/esplay-s3/config.h @@ -83,6 +83,7 @@ #define RG_GPIO_LCD_CS GPIO_NUM_8 #define RG_GPIO_LCD_DC GPIO_NUM_47 #define RG_GPIO_LCD_BCKL GPIO_NUM_39 +#define RG_GPIO_LCD_RST GPIO_NUM_3 // SPI SD Card #define RG_GPIO_SDSPI_CMD GPIO_NUM_14 diff --git a/components/retro-go/targets/mrgc-g32/config.h b/components/retro-go/targets/mrgc-g32/config.h index 6dc6dd86e..2c7fd4dbc 100644 --- a/components/retro-go/targets/mrgc-g32/config.h +++ b/components/retro-go/targets/mrgc-g32/config.h @@ -108,6 +108,7 @@ #define RG_GPIO_LCD_CS GPIO_NUM_5 #define RG_GPIO_LCD_DC GPIO_NUM_12 #define RG_GPIO_LCD_BCKL GPIO_NUM_27 +// #define RG_GPIO_LCD_RST GPIO_NUM_NC // External I2S DAC #define RG_GPIO_SND_I2S_BCK GPIO_NUM_26 diff --git a/components/retro-go/targets/mrgc-gbm/config.h b/components/retro-go/targets/mrgc-gbm/config.h index 32253694f..0c11aecee 100644 --- a/components/retro-go/targets/mrgc-gbm/config.h +++ b/components/retro-go/targets/mrgc-gbm/config.h @@ -97,6 +97,7 @@ #define RG_GPIO_LCD_CS GPIO_NUM_5 #define RG_GPIO_LCD_DC GPIO_NUM_12 #define RG_GPIO_LCD_BCKL GPIO_NUM_27 +// #define RG_GPIO_LCD_RST GPIO_NUM_NC // External I2S DAC #define RG_GPIO_SND_I2S_BCK GPIO_NUM_26 diff --git a/components/retro-go/targets/odroid-go/config.h b/components/retro-go/targets/odroid-go/config.h index a9bd52d7a..e61c712c2 100644 --- a/components/retro-go/targets/odroid-go/config.h +++ b/components/retro-go/targets/odroid-go/config.h @@ -88,6 +88,7 @@ #define RG_GPIO_LCD_CS GPIO_NUM_5 #define RG_GPIO_LCD_DC GPIO_NUM_21 #define RG_GPIO_LCD_BCKL GPIO_NUM_14 +// #define RG_GPIO_LCD_RST GPIO_NUM_NC // SPI SD Card #define RG_GPIO_SDSPI_MISO GPIO_NUM_19 diff --git a/components/retro-go/targets/qtpy-gamer/config.h b/components/retro-go/targets/qtpy-gamer/config.h index 5c70f4503..f5e73353f 100644 --- a/components/retro-go/targets/qtpy-gamer/config.h +++ b/components/retro-go/targets/qtpy-gamer/config.h @@ -73,6 +73,7 @@ #define RG_GPIO_LCD_CS GPIO_NUM_27 #define RG_GPIO_LCD_DC GPIO_NUM_7 // #define RG_GPIO_LCD_BCKL GPIO_NUM_5 // not used! +// #define RG_GPIO_LCD_RST GPIO_NUM_NC // SPI SD Card #define RG_GPIO_SDSPI_MISO GPIO_NUM_12 diff --git a/components/retro-go/targets/retro-esp32/config.h b/components/retro-go/targets/retro-esp32/config.h index 61e37e1df..136d22b3c 100644 --- a/components/retro-go/targets/retro-esp32/config.h +++ b/components/retro-go/targets/retro-esp32/config.h @@ -86,6 +86,7 @@ #define RG_GPIO_LCD_CS GPIO_NUM_5 #define RG_GPIO_LCD_DC GPIO_NUM_21 #define RG_GPIO_LCD_BCKL GPIO_NUM_14 +// #define RG_GPIO_LCD_RST GPIO_NUM_NC // SPI SD Card #define RG_GPIO_SDSPI_MISO GPIO_NUM_19