@@ -480,9 +480,7 @@ def _right_to_left(self) -> None:
480
480
self .displaymode &= ~ _LCD_ENTRYLEFT
481
481
self ._write8 (_LCD_ENTRYMODESET | self .displaymode )
482
482
483
- def create_char (
484
- self , location : int , pattern : Sequence [int , int , int , int , int , int , int , int ]
485
- ) -> None :
483
+ def create_char (self , location : int , pattern : Sequence [int ]) -> None :
486
484
"""
487
485
Fill one of the first 8 CGRAM locations with custom characters.
488
486
The location parameter should be between 0 and 7 and pattern should
@@ -679,7 +677,7 @@ def __init__(
679
677
super ().__init__ (rs , en , db4 , db5 , db6 , db7 , columns , lines )
680
678
681
679
@property
682
- def color (self ) -> List [int , int , int ]:
680
+ def color (self ) -> List [int ]:
683
681
"""
684
682
The color of the display. Provide a list of three integers ranging 0 - 100, ``[R, G, B]``.
685
683
``0`` is no color, or "off". ``100`` is maximum color. For example, the brightest red would
@@ -710,7 +708,7 @@ def color(self) -> List[int, int, int]:
710
708
return self ._color
711
709
712
710
@color .setter
713
- def color (self , color : Union [List [int , int , int ], int ]) -> None :
711
+ def color (self , color : Union [List [int ], int ]) -> None :
714
712
if isinstance (color , int ):
715
713
if color >> 24 :
716
714
raise ValueError ("Integer color value must be positive and 24 bits max" )
0 commit comments