adafruit-circuitpython-rgb-display 3.12.1__py3-none-any.whl → 3.12.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: adafruit-circuitpython-rgb-display
3
- Version: 3.12.1
3
+ Version: 3.12.3
4
4
  Summary: CircuitPython library for RGB displays.
5
5
  Author-email: Adafruit Industries <circuitpython@adafruit.com>
6
6
  License: MIT
@@ -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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -21,7 +21,7 @@ try:
21
21
  except ImportError:
22
22
  pass
23
23
 
24
- __version__ = "3.12.1"
24
+ __version__ = "3.12.3"
25
25
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
26
26
 
27
27
  _SWRESET = const(0x01)
@@ -21,7 +21,7 @@ try:
21
21
  except ImportError:
22
22
  pass
23
23
 
24
- __version__ = "3.12.1"
24
+ __version__ = "3.12.3"
25
25
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
26
26
 
27
27
  _SWRESET = const(0x01)
@@ -22,7 +22,7 @@ try:
22
22
  except ImportError:
23
23
  pass
24
24
 
25
- __version__ = "3.12.1"
25
+ __version__ = "3.12.3"
26
26
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
27
27
 
28
28
 
@@ -31,7 +31,7 @@ except ImportError:
31
31
 
32
32
  from adafruit_bus_device import spi_device
33
33
 
34
- __version__ = "3.12.1"
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 not isinstance(r, int): # see if the first var is a tuple/list
58
- red, g, b = r
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
@@ -22,7 +22,7 @@ try:
22
22
  except ImportError:
23
23
  pass
24
24
 
25
- __version__ = "3.12.1"
25
+ __version__ = "3.12.3"
26
26
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
27
27
 
28
28
  _SWRESET = const(0x01)
@@ -22,7 +22,7 @@ try:
22
22
  except ImportError:
23
23
  pass
24
24
 
25
- __version__ = "3.12.1"
25
+ __version__ = "3.12.3"
26
26
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
27
27
 
28
28
 
@@ -21,7 +21,7 @@ try:
21
21
  except ImportError:
22
22
  pass
23
23
 
24
- __version__ = "3.12.1"
24
+ __version__ = "3.12.3"
25
25
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
26
26
 
27
27
  _SETCOLUMN = const(0x15)
@@ -23,7 +23,7 @@ try:
23
23
  except ImportError:
24
24
  pass
25
25
 
26
- __version__ = "3.12.1"
26
+ __version__ = "3.12.3"
27
27
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
28
28
 
29
29
  _NOP = const(0x00)
@@ -24,7 +24,7 @@ try:
24
24
  except ImportError:
25
25
  pass
26
26
 
27
- __version__ = "3.12.1"
27
+ __version__ = "3.12.3"
28
28
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
29
29
 
30
30
  _NOP = const(0x00)
@@ -1,15 +0,0 @@
1
- adafruit_rgb_display/__init__.py,sha256=4wOEGnSq7Q63i9G8CW4v5Cdc506UgMEwK_dS8xYpJ5k,209
2
- adafruit_rgb_display/hx8353.py,sha256=7qGQnOVTmC3JvN6uzo7-odeetfMPBpUf4uhQjwL3Oog,2064
3
- adafruit_rgb_display/hx8357.py,sha256=v5evr5CQaP61mo9bNre-tVHdoyU75e1pKFqjt6E0mHE,3566
4
- adafruit_rgb_display/ili9341.py,sha256=K8QeIe0e-4jNvuqTBMMGaajyry7AdGxzaNJ-qwOSHQY,3512
5
- adafruit_rgb_display/rgb.py,sha256=dgqYyWzBBtD9iDqkutBxXemO1tWC1TJlllElqVBvpjc,11579
6
- adafruit_rgb_display/s6d02a1.py,sha256=CoBhf7owXlbceDJymTybuZ69aS4fbxr5TSVwOClhmpI,2295
7
- adafruit_rgb_display/ssd1331.py,sha256=keRyPd-d0WkRCb7_Mw3sDdm0UhTUV6FXKgEBT1PA1qA,4336
8
- adafruit_rgb_display/ssd1351.py,sha256=h9p2wD91jL6_K85ei_cMgpEQ9SMrY68NB5DEPe46ZOQ,3807
9
- adafruit_rgb_display/st7735.py,sha256=2vOgDO5Uw0_Qd2wW0MQrhBZT93xwX6QLIskYvEv5jB8,8457
10
- adafruit_rgb_display/st7789.py,sha256=FCG-hJcECrxYFzTLdmAfm99MTnP7Ko9JY-dhcwy2aL0,3576
11
- adafruit_circuitpython_rgb_display-3.12.1.dist-info/LICENSE,sha256=LgLxmuGT-yzOZ0qYCW63SRPvZjD-WMNrJbkyFM0XVOI,1110
12
- adafruit_circuitpython_rgb_display-3.12.1.dist-info/METADATA,sha256=xFe9MqEagoFFqsxSdwk1acWLX_h7RKwCXQwySo5jPrU,6430
13
- adafruit_circuitpython_rgb_display-3.12.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
14
- adafruit_circuitpython_rgb_display-3.12.1.dist-info/top_level.txt,sha256=cJwF7_bQzYW5T_mcKLceSSUQ99qb2Bmpz7KdRs_O0tA,21
15
- adafruit_circuitpython_rgb_display-3.12.1.dist-info/RECORD,,