File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
api_drivers/py_api_drivers/frozen/display Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ def __init__(
123123 self ._backup_set_memory_location = None
124124
125125 self ._rotation = lv .DISPLAY_ROTATION ._0 # NOQA
126- self ._invert_colors = False
127126
128127 self ._rgb565_byte_swap = rgb565_byte_swap
129128 self ._cmd_bits = _cmd_bits
@@ -434,16 +433,14 @@ def get_refr_timer(self):
434433 def delete_refr_timer (self ):
435434 self ._disp_drv .delete_refr_timer ()
436435
437- def invert_colors (self ):
436+ def set_color_inversion (self , value ):
438437 # If your white is showing up as black and your black
439438 # is showing up as white try setting this either True or False
440439 # and see if it corrects the problem.
441440 if None in (self ._INVON , self ._INVOFF ):
442441 raise NotImplementedError
443442
444- self ._invert_colors = not self ._invert_colors
445-
446- if self ._invert_colors :
443+ if value :
447444 self .set_params (self ._INVON )
448445 else :
449446 self .set_params (self ._INVOFF )
You can’t perform that action at this time.
0 commit comments