adafruit-circuitpython-rgb-display 3.12.2__py3-none-any.whl → 3.12.3__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {adafruit_circuitpython_rgb_display-3.12.2.dist-info → adafruit_circuitpython_rgb_display-3.12.3.dist-info}/METADATA +1 -1
- adafruit_circuitpython_rgb_display-3.12.3.dist-info/RECORD +15 -0
- {adafruit_circuitpython_rgb_display-3.12.2.dist-info → adafruit_circuitpython_rgb_display-3.12.3.dist-info}/WHEEL +1 -1
- adafruit_rgb_display/hx8353.py +1 -1
- adafruit_rgb_display/hx8357.py +1 -1
- adafruit_rgb_display/ili9341.py +1 -1
- adafruit_rgb_display/rgb.py +10 -5
- adafruit_rgb_display/s6d02a1.py +1 -1
- adafruit_rgb_display/ssd1331.py +1 -1
- adafruit_rgb_display/ssd1351.py +1 -1
- adafruit_rgb_display/st7735.py +1 -1
- adafruit_rgb_display/st7789.py +1 -1
- adafruit_circuitpython_rgb_display-3.12.2.dist-info/RECORD +0 -15
- {adafruit_circuitpython_rgb_display-3.12.2.dist-info → adafruit_circuitpython_rgb_display-3.12.3.dist-info}/LICENSE +0 -0
- {adafruit_circuitpython_rgb_display-3.12.2.dist-info → adafruit_circuitpython_rgb_display-3.12.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
adafruit_rgb_display/__init__.py,sha256=4wOEGnSq7Q63i9G8CW4v5Cdc506UgMEwK_dS8xYpJ5k,209
|
2
|
+
adafruit_rgb_display/hx8353.py,sha256=kkpLCfqpaE2GH-mu7Ga6OoLiBzFBpurWZuGWWE3OjdQ,2064
|
3
|
+
adafruit_rgb_display/hx8357.py,sha256=SelQGJiq0aTBiYM9Bs90rUEKPjKhuXtWgqyymJnGVD4,3566
|
4
|
+
adafruit_rgb_display/ili9341.py,sha256=l78IcwqAcAM_kL1sWPECOsqmZigVvRI9BB-Z8Q0tITQ,3512
|
5
|
+
adafruit_rgb_display/rgb.py,sha256=bH_j9ukAqJAoU_tO26zJ50cvWP81SVISJ5fcThNULNM,11767
|
6
|
+
adafruit_rgb_display/s6d02a1.py,sha256=I8iUHMhnBxOTT1VsXzE-HDT0i4N1G6reLAxXGK0_TBw,2295
|
7
|
+
adafruit_rgb_display/ssd1331.py,sha256=nf1Zckm-akyJvbZGn9A0qbJn6BOeBxcbVpuT7eiXgDA,4336
|
8
|
+
adafruit_rgb_display/ssd1351.py,sha256=aVTK--Te3q4mdlzinZVmxbHE000V-IK0wSwaIlswNCk,3807
|
9
|
+
adafruit_rgb_display/st7735.py,sha256=EotL1ckvMNdq2dbCEzhldnDKf-ILPOw_1qv1MpZC7I4,8457
|
10
|
+
adafruit_rgb_display/st7789.py,sha256=f77EZJyJ2Dfo-ThQwv0L60h5inBxTQvhCCIHXr4VCRg,3576
|
11
|
+
adafruit_circuitpython_rgb_display-3.12.3.dist-info/LICENSE,sha256=LgLxmuGT-yzOZ0qYCW63SRPvZjD-WMNrJbkyFM0XVOI,1110
|
12
|
+
adafruit_circuitpython_rgb_display-3.12.3.dist-info/METADATA,sha256=AU_A7n1NslLZnhEjiT8IPTrBJOWA0nkblD-s_zeVwqY,6430
|
13
|
+
adafruit_circuitpython_rgb_display-3.12.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
14
|
+
adafruit_circuitpython_rgb_display-3.12.3.dist-info/top_level.txt,sha256=cJwF7_bQzYW5T_mcKLceSSUQ99qb2Bmpz7KdRs_O0tA,21
|
15
|
+
adafruit_circuitpython_rgb_display-3.12.3.dist-info/RECORD,,
|
adafruit_rgb_display/hx8353.py
CHANGED
adafruit_rgb_display/hx8357.py
CHANGED
adafruit_rgb_display/ili9341.py
CHANGED
adafruit_rgb_display/rgb.py
CHANGED
@@ -31,7 +31,7 @@ except ImportError:
|
|
31
31
|
|
32
32
|
from adafruit_bus_device import spi_device
|
33
33
|
|
34
|
-
__version__ = "3.12.
|
34
|
+
__version__ = "3.12.3"
|
35
35
|
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
|
36
36
|
|
37
37
|
# This is the size of the buffer to be used for fill operations, in 16-bit
|
@@ -48,14 +48,19 @@ except ImportError:
|
|
48
48
|
|
49
49
|
def color565(
|
50
50
|
r: Union[int, Tuple[int, int, int], List[int]],
|
51
|
-
g: int = 0,
|
52
|
-
b: int = 0,
|
51
|
+
g: Optional[int] = 0,
|
52
|
+
b: Optional[int] = 0,
|
53
53
|
) -> int:
|
54
54
|
"""Convert red, green and blue values (0-255) into a 16-bit 565 encoding. As
|
55
55
|
a convenience this is also available in the parent adafruit_rgb_display
|
56
56
|
package namespace."""
|
57
|
-
if
|
58
|
-
|
57
|
+
if isinstance(r, (tuple, list)): # see if the first var is a tuple/list
|
58
|
+
if len(r) >= 3:
|
59
|
+
red, g, b = r
|
60
|
+
else:
|
61
|
+
raise ValueError(
|
62
|
+
"Not enough values to unpack (expected 3, got %d)" % len(r)
|
63
|
+
)
|
59
64
|
else:
|
60
65
|
red = r
|
61
66
|
return (red & 0xF8) << 8 | (g & 0xFC) << 3 | b >> 3
|
adafruit_rgb_display/s6d02a1.py
CHANGED
adafruit_rgb_display/ssd1331.py
CHANGED
adafruit_rgb_display/ssd1351.py
CHANGED
adafruit_rgb_display/st7735.py
CHANGED
adafruit_rgb_display/st7789.py
CHANGED
@@ -1,15 +0,0 @@
|
|
1
|
-
adafruit_rgb_display/__init__.py,sha256=4wOEGnSq7Q63i9G8CW4v5Cdc506UgMEwK_dS8xYpJ5k,209
|
2
|
-
adafruit_rgb_display/hx8353.py,sha256=HIu_OCsbhUmRdJxn_8SIiO9paVvoqQrt5vQJ8gAcvAY,2064
|
3
|
-
adafruit_rgb_display/hx8357.py,sha256=jL6FckmN3ZU7jK4eGxh8Fv4bFwx3-27QPAQXnKHMIOc,3566
|
4
|
-
adafruit_rgb_display/ili9341.py,sha256=4LBEEDa6UUGAcwf2wZSFbydQthfg8m-BO8bL9MOBKEs,3512
|
5
|
-
adafruit_rgb_display/rgb.py,sha256=DDTiBixeJO1ip9r5DBXyKylyCDDortYTPIZRs_pAaBo,11579
|
6
|
-
adafruit_rgb_display/s6d02a1.py,sha256=2lQtLIaVIckpU_GcCKWGQUw7OaQk7RYWUwIJZdL1HVs,2295
|
7
|
-
adafruit_rgb_display/ssd1331.py,sha256=-xhEZcNeVmCmyl23vno7sDGnmbEqrFrQy01V3JFhrSA,4336
|
8
|
-
adafruit_rgb_display/ssd1351.py,sha256=i_UMhumeg8mrITxFv3IGi9QRkY9U2cKqOzu4TU7nrTo,3807
|
9
|
-
adafruit_rgb_display/st7735.py,sha256=5_oFiuB0fWA6fo5tLzJSfc-0WXsdTOaNyQqQBxezghU,8457
|
10
|
-
adafruit_rgb_display/st7789.py,sha256=ttELfa5RAd0xOBvd3WSgDd1aotuzAWrDYaeLzhj3l2I,3576
|
11
|
-
adafruit_circuitpython_rgb_display-3.12.2.dist-info/LICENSE,sha256=LgLxmuGT-yzOZ0qYCW63SRPvZjD-WMNrJbkyFM0XVOI,1110
|
12
|
-
adafruit_circuitpython_rgb_display-3.12.2.dist-info/METADATA,sha256=lccSt6N0Ca4DsX8AJmO68i3P9CYm3LsHRUineTCv9sU,6430
|
13
|
-
adafruit_circuitpython_rgb_display-3.12.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
14
|
-
adafruit_circuitpython_rgb_display-3.12.2.dist-info/top_level.txt,sha256=cJwF7_bQzYW5T_mcKLceSSUQ99qb2Bmpz7KdRs_O0tA,21
|
15
|
-
adafruit_circuitpython_rgb_display-3.12.2.dist-info/RECORD,,
|
File without changes
|