1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/esp32s3-usb-otg: update for st77xx driver

This commit is contained in:
Gunar Schorcht 2023-07-13 09:14:05 +02:00
parent f8c9770db0
commit 1e99e9a9ce
3 changed files with 11 additions and 15 deletions

View File

@ -26,7 +26,3 @@ endif
ifneq (,$(filter disp_dev,$(USEMODULE)))
USEMODULE += st7789
endif
ifneq (,$(filter st7735,$(USEMODULE)))
USEMODULE += st7789
endif

View File

@ -20,7 +20,7 @@
void board_init(void)
{
#if MODULE_ST7735
#if MODULE_ST77XX
gpio_init(LCD_BACKLIGHT, GPIO_OUT);
#endif
}

View File

@ -147,21 +147,21 @@
* This configuration cannot be changed.
* @{
*/
#if MODULE_ST7735
#if MODULE_ST77XX
#define LCD_DC GPIO4 /**< LCD DC signal */
#define LCD_CS GPIO5 /**< LCD EN signal */
#define LCD_RST GPIO8 /**< LCD RST signal */
#define LCD_BACKLIGHT GPIO9 /**< LCD BL signal */
#define ST7735_PARAM_SPI SPI_DEV(0)
#define ST7735_PARAM_CS LCD_CS
#define ST7735_PARAM_DCX LCD_DC
#define ST7735_PARAM_RST LCD_RST
#define ST7735_PARAM_NUM_LINES 240
#define ST7735_PARAM_RGB_CHANNELS 240
#define ST7735_PARAM_ROTATION LCD_MADCTL_MV | LCD_MADCTL_MX | LCD_MADCTL_MY
#define ST7735_PARAM_INVERTED 1
#define ST7735_PARAM_RGB 1
#define ST77XX_PARAM_CNTRL ST77XX_CNTRL_ST7789
#define ST77XX_PARAM_CS LCD_CS
#define ST77XX_PARAM_DCX LCD_DC
#define ST77XX_PARAM_RST LCD_RST
#define ST77XX_PARAM_NUM_LINES 240
#define ST77XX_PARAM_RGB_CHANNELS 240
#define ST77XX_PARAM_ROTATION ST77XX_ROTATION_VERT
#define ST77XX_PARAM_INVERTED 1
#define ST77XX_PARAM_RGB 1
#define BACKLIGHT_ON gpio_set(LCD_BACKLIGHT)
#define BACKLIGHT_OFF gpio_clear(LCD_BACKLIGHT)