From d060f47d584af07edf75e2d97e16a4970fdfdd52 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 13 Apr 2022 10:35:06 +0200 Subject: [PATCH] boards/adafruit-clue: fix display rotation mode --- boards/adafruit-clue/include/board.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boards/adafruit-clue/include/board.h b/boards/adafruit-clue/include/board.h index 50af951aea..97d476d3b8 100644 --- a/boards/adafruit-clue/include/board.h +++ b/boards/adafruit-clue/include/board.h @@ -107,7 +107,8 @@ 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_HORZ_FLIP) /**< Rotation mode */ +#define ILI9341_PARAM_ROTATION (LCD_ROTATION_VERT) /**< Rotation mode */ +#define ILI9341_PARAM_OFFSET_X (80) /**< Vertical rotation requires a 80 pixel offset */ /** @} */ #ifdef __cplusplus