Fix orientation config define
This commit is contained in:
parent
e3347e3cb5
commit
7c956f1442
|
@ -195,24 +195,24 @@ menu "LVGL TFT Display controller"
|
||||||
# Used in display init function to send display orientation commands
|
# Used in display init function to send display orientation commands
|
||||||
choice DISPLAY_ORIENTATION
|
choice DISPLAY_ORIENTATION
|
||||||
prompt "Display orientation"
|
prompt "Display orientation"
|
||||||
default DISPLAY_ORIENTATION_PORTRAIT if !LV_TFT_DISPLAY_CONTROLLER_SSD1306
|
default LV_DISPLAY_ORIENTATION_PORTRAIT if !LV_TFT_DISPLAY_CONTROLLER_SSD1306
|
||||||
default DISPLAY_ORIENTATION_LANDSCAPE if LV_TFT_DISPLAY_CONTROLLER_SSD1306
|
default LV_DISPLAY_ORIENTATION_LANDSCAPE if LV_TFT_DISPLAY_CONTROLLER_SSD1306
|
||||||
config DISPLAY_ORIENTATION_PORTRAIT
|
config LV_DISPLAY_ORIENTATION_PORTRAIT
|
||||||
bool "Portrait" if !LV_TFT_DISPLAY_CONTROLLER_SSD1306
|
bool "Portrait" if !LV_TFT_DISPLAY_CONTROLLER_SSD1306
|
||||||
config DISPLAY_ORIENTATION_PORTRAIT_INVERTED
|
config LV_DISPLAY_ORIENTATION_PORTRAIT_INVERTED
|
||||||
bool "Portrait inverted" if !LV_TFT_DISPLAY_CONTROLLER_SSD1306
|
bool "Portrait inverted" if !LV_TFT_DISPLAY_CONTROLLER_SSD1306
|
||||||
config DISPLAY_ORIENTATION_LANDSCAPE
|
config LV_DISPLAY_ORIENTATION_LANDSCAPE
|
||||||
bool "Landscape"
|
bool "Landscape"
|
||||||
config DISPLAY_ORIENTATION_LANDSCAPE_INVERTED
|
config LV_DISPLAY_ORIENTATION_LANDSCAPE_INVERTED
|
||||||
bool "Landscape inverted"
|
bool "Landscape inverted"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LV_DISPLAY_ORIENTATION
|
config LV_DISPLAY_ORIENTATION
|
||||||
int
|
int
|
||||||
default 0 if DISPLAY_ORIENTATION_PORTRAIT
|
default 0 if LV_DISPLAY_ORIENTATION_PORTRAIT
|
||||||
default 1 if DISPLAY_ORIENTATION_PORTRAIT_INVERTED
|
default 1 if LV_DISPLAY_ORIENTATION_PORTRAIT_INVERTED
|
||||||
default 2 if DISPLAY_ORIENTATION_LANDSCAPE
|
default 2 if LV_DISPLAY_ORIENTATION_LANDSCAPE
|
||||||
default 3 if DISPLAY_ORIENTATION_LANDSCAPE_INVERTED
|
default 3 if LV_DISPLAY_ORIENTATION_LANDSCAPE_INVERTED
|
||||||
|
|
||||||
config LV_TFT_DISPLAY_OFFSETS
|
config LV_TFT_DISPLAY_OFFSETS
|
||||||
bool
|
bool
|
||||||
|
|
Loading…
Reference in a new issue