mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/adafruit-pybadge: update for st77xx driver
This commit is contained in:
parent
b5b4ad4a69
commit
5406793bff
@ -64,7 +64,7 @@ void board_init(void)
|
||||
gpio_set(SPEAKER_ENABLE_PIN);
|
||||
}
|
||||
|
||||
if (IS_USED(MODULE_ST7735)) {
|
||||
if (IS_USED(MODULE_ST77XX)) {
|
||||
gpio_init(BACKLIGHT_PIN, GPIO_OUT);
|
||||
}
|
||||
}
|
||||
|
@ -67,17 +67,18 @@ extern "C" {
|
||||
* @name Display configuration (not supported yet)
|
||||
* @{
|
||||
*/
|
||||
#define ST7735_PARAM_SPI SPI_DEV(1) /**< SPI device */
|
||||
#define ST7735_PARAM_CS GPIO_PIN(PB, 7) /**< Chip select pin */
|
||||
#define ST7735_PARAM_DCX GPIO_PIN(PB, 5) /**< DCX pin */
|
||||
#define ST7735_PARAM_RST GPIO_PIN(PA, 0) /**< Reset pin */
|
||||
#define ST7735_PARAM_NUM_LINES (160U) /**< Number of screen lines */
|
||||
#define ST7735_PARAM_RGB_CHANNELS (128U) /**< Number of screen rgb channel (height) */
|
||||
#define ST7735_PARAM_RGB (1) /**< RGB configuration */
|
||||
#define ST7735_PARAM_INVERTED (0) /**< Inversion configuration */
|
||||
#define ST7735_PARAM_ROTATION (ST7735_ROTATION_HORZ_FLIP) /**< Rotation mode */
|
||||
#define LCD_SCREEN_WIDTH (ST7735_PARAM_NUM_LINES) /**< LCD screen width */
|
||||
#define LCD_SCREEN_HEIGHT (ST7735_PARAM_RGB_CHANNELS) /**< LCD screen height */
|
||||
#define ST77XX_PARAM_CNTRL ST77XX_CNTRL_ST7735 /**< ST77xx controller variant */
|
||||
#define ST77XX_PARAM_SPI SPI_DEV(1) /**< SPI device */
|
||||
#define ST77XX_PARAM_CS GPIO_PIN(PB, 7) /**< Chip select pin */
|
||||
#define ST77XX_PARAM_DCX GPIO_PIN(PB, 5) /**< DCX pin */
|
||||
#define ST77XX_PARAM_RST GPIO_PIN(PA, 0) /**< Reset pin */
|
||||
#define ST77XX_PARAM_NUM_LINES (160U) /**< Number of screen lines */
|
||||
#define ST77XX_PARAM_RGB_CHANNELS (128U) /**< Number of screen rgb channel (height) */
|
||||
#define ST77XX_PARAM_RGB (1) /**< RGB configuration */
|
||||
#define ST77XX_PARAM_INVERTED (0) /**< Inversion configuration */
|
||||
#define ST77XX_PARAM_ROTATION (ST77XX_ROTATION_HORZ_FLIP) /**< Rotation mode */
|
||||
#define LCD_SCREEN_WIDTH (ST77XX_PARAM_NUM_LINES) /**< LCD screen width */
|
||||
#define LCD_SCREEN_HEIGHT (ST77XX_PARAM_RGB_CHANNELS) /**< LCD screen height */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user