SSD1306: Use LV_DISPLAY_ORIENTATION symbols
This commit is contained in:
parent
6aeb0b725a
commit
9fed1cc47b
|
@ -101,10 +101,10 @@ void ssd1306_init(void)
|
||||||
uint8_t orientation_1 = 0;
|
uint8_t orientation_1 = 0;
|
||||||
uint8_t orientation_2 = 0;
|
uint8_t orientation_2 = 0;
|
||||||
|
|
||||||
#if defined (CONFIG_DISPLAY_ORIENTATION_LANDSCAPE)
|
#if defined (CONFIG_LV_DISPLAY_ORIENTATION_LANDSCAPE)
|
||||||
orientation_1 = OLED_CMD_SET_SEGMENT_REMAP;
|
orientation_1 = OLED_CMD_SET_SEGMENT_REMAP;
|
||||||
orientation_2 = OLED_CMD_SET_COM_SCAN_MODE_REMAP;
|
orientation_2 = OLED_CMD_SET_COM_SCAN_MODE_REMAP;
|
||||||
#elif defined (CONFIG_DISPLAY_ORIENTATION_LANDSCAPE_INVERTED)
|
#elif defined (CONFIG_LV_DISPLAY_ORIENTATION_LANDSCAPE_INVERTED)
|
||||||
orientation_1 = 0xA0;
|
orientation_1 = 0xA0;
|
||||||
orientation_2 = OLED_CMD_SET_COM_SCAN_MODE_NORMAL;
|
orientation_2 = OLED_CMD_SET_COM_SCAN_MODE_NORMAL;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue