File tree 1 file changed +2
-5
lines changed
api_drivers/py_api_drivers/frozen/display
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ def __init__(
123
123
self ._backup_set_memory_location = None
124
124
125
125
self ._rotation = lv .DISPLAY_ROTATION ._0 # NOQA
126
- self ._invert_colors = False
127
126
128
127
self ._rgb565_byte_swap = rgb565_byte_swap
129
128
self ._cmd_bits = _cmd_bits
@@ -434,16 +433,14 @@ def get_refr_timer(self):
434
433
def delete_refr_timer (self ):
435
434
self ._disp_drv .delete_refr_timer ()
436
435
437
- def invert_colors (self ):
436
+ def set_color_inversion (self , value ):
438
437
# If your white is showing up as black and your black
439
438
# is showing up as white try setting this either True or False
440
439
# and see if it corrects the problem.
441
440
if None in (self ._INVON , self ._INVOFF ):
442
441
raise NotImplementedError
443
442
444
- self ._invert_colors = not self ._invert_colors
445
-
446
- if self ._invert_colors :
443
+ if value :
447
444
self .set_params (self ._INVON )
448
445
else :
449
446
self .set_params (self ._INVOFF )
You can’t perform that action at this time.
0 commit comments