Add display orientation choice

This commit is contained in:
C47D 2021-01-06 12:14:18 -06:00
parent bbffd73e19
commit a3c25375a3

View file

@ -174,6 +174,26 @@ menu "LVGL TFT Display controller"
help help
Display controller protocol I2C Display controller protocol I2C
# Used in display init function to send display orientation commands
choice DISPLAY_ORIENTATION
prompt "Display orientation"
default LV_DISPLAY_ORIENTATION_PORTRAIT
config LV_DISPLAY_ORIENTATION_PORTRAIT
bool "Portrait"
config LV_DISPLAY_ORIENTATION_PORTRAIT_INVERTED
bool "Portrait inverted"
config LV_DISPLAY_ORIENTATION_LANDSCAPE
bool "Landscape"
config LV_DISPLAY_ORIENTATION_LANDSCAPE_INVERTED
bool "Landscaoe inverted"
config LV_DISPLAY_ORIENTATION
int
default 0 if DISPLAY_ORIENTATION_PORTRAIT
default 1 if DISPLAY_ORIENTATION_PORTRAIT_INVERTED
default 2 if DISPLAY_ORIENTATION_LANDSCAPE
default 3 if DISPLAY_ORIENTATION_LANDSCAPE_INVERTED
config LV_TFT_DISPLAY_OFFSETS config LV_TFT_DISPLAY_OFFSETS
bool bool
help help