@@ -98,7 +98,7 @@ def __init__(self,
98
98
miso = 5 , mosi = 18 , clk = 19 , cs = 13 , dc = 12 , rst = 4 , power = 14 , backlight = 15 , backlight_on = 0 , power_on = 0 ,
99
99
spihost = esp .HSPI_HOST , spimode = 0 , mhz = 40 , factor = 4 , hybrid = True , width = 240 , height = 320 , start_x = 0 , start_y = 0 ,
100
100
invert = False , double_buffer = True , half_duplex = True , display_type = 0 , asynchronous = False , initialize = True ,
101
- color_format = lv . COLOR_FORMAT . NATIVE
101
+ color_format = None
102
102
):
103
103
104
104
# Initializations
@@ -168,7 +168,8 @@ def __init__(self,
168
168
self .disp_drv .monitor_cb = self .monitor
169
169
self .disp_drv .hor_res = self .width
170
170
self .disp_drv .ver_res = self .height
171
- self .disp_drv .color_format = color_format
171
+ if color_format :
172
+ self .disp_drv .color_format = color_format
172
173
173
174
if self .initialize :
174
175
self .init ()
@@ -593,7 +594,7 @@ def __init__(self,
593
594
miso = 5 , mosi = 18 , clk = 19 , cs = 13 , dc = 12 , rst = 4 , power = 14 , backlight = 15 , backlight_on = 0 , power_on = 0 ,
594
595
spihost = esp .HSPI_HOST , spimode = 0 , mhz = 40 , factor = 8 , hybrid = True , width = 320 , height = 480 , colormode = COLOR_MODE_RGB ,
595
596
rot = PORTRAIT , invert = False , double_buffer = True , half_duplex = True , asynchronous = False , initialize = True ,
596
- color_format = lv . COLOR_FORMAT . NATIVE
597
+ color_format = None
597
598
):
598
599
599
600
if lv .color_t .__SIZE__ != 4 :
@@ -643,7 +644,7 @@ def __init__(self,
643
644
miso = 5 , mosi = 18 , clk = 19 , cs = 13 , dc = 12 , rst = 4 , power = 14 , backlight = 15 , backlight_on = 0 , power_on = 0 ,
644
645
spihost = esp .HSPI_HOST , spimode = 0 , mhz = 60 , factor = 4 , hybrid = True , width = 240 , height = 240 , colormode = COLOR_MODE_RGB ,
645
646
rot = PORTRAIT , invert = False , double_buffer = True , half_duplex = True , asynchronous = False , initialize = True ,
646
- color_format = lv . COLOR_FORMAT . NATIVE
647
+ color_format = None
647
648
):
648
649
649
650
if lv .color_t .__SIZE__ != 2 :
0 commit comments