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

boards: adapt configuration with new rotation mode defines

This commit is contained in:
Alexandre Abadie 2022-04-13 13:46:32 +02:00
parent 85ba0597f7
commit d992a18c76
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
4 changed files with 4 additions and 3 deletions

View File

@ -107,7 +107,7 @@ extern "C" {
#define ILI9341_PARAM_NUM_LINES (240U) /**< Number of screen lines */
#define ILI9341_PARAM_RGB (1) /**< RGB configuration */
#define ILI9341_PARAM_INVERTED (1) /**< Inversion configuration */
#define ILI9341_PARAM_ROTATION (LCD_ROTATION_VERT) /**< Rotation mode */
#define ILI9341_PARAM_ROTATION (ILI9341_ROTATION_VERT) /**< Rotation mode */
#define ILI9341_PARAM_OFFSET_X (80) /**< Vertical rotation requires a 80 pixel offset */
/** @} */

View File

@ -75,6 +75,7 @@ extern "C" {
#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 */
/** @} */

View File

@ -121,7 +121,7 @@
#define ILI9341_PARAM_RST LCD_RST
#define ILi9341_PARAM_RGB 0
#define ILI9341_PARAM_INVERTED 0
#define ILI9341_PARAM_ROTATION LCD_ROTATION_HORZ_FLIP
#define ILI9341_PARAM_ROTATION ILI9341_ROTATION_HORZ_FLIP
#endif
/** @} */

View File

@ -76,7 +76,7 @@ extern "C" {
#define ILI9341_PARAM_RGB 1
#define ILI9341_PARAM_INVERTED 1
#define ILI9341_PARAM_NUM_LINES 240U
#define ILI9341_PARAM_ROTATION LCD_ROTATION_HORZ_FLIP
#define ILI9341_PARAM_ROTATION ILI9341_ROTATION_HORZ_FLIP
/** @} */
/**