adafruit-circuitpython-rgb-display 3.12.2__tar.gz → 3.12.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/PKG-INFO +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/PKG-INFO +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/hx8353.py +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/hx8357.py +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/ili9341.py +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/rgb.py +10 -5
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/s6d02a1.py +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/ssd1331.py +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/ssd1351.py +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/st7735.py +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/st7789.py +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/requirements.txt +2 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/pyproject.toml +1 -1
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.github/workflows/build.yml +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.github/workflows/failure-help-text.yml +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.github/workflows/release_gh.yml +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.github/workflows/release_pypi.yml +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.gitignore +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.pre-commit-config.yaml +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.pylintrc +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.readthedocs.yaml +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/CODE_OF_CONDUCT.md +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/LICENSE +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/LICENSES/CC-BY-4.0.txt +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/LICENSES/MIT.txt +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/LICENSES/Unlicense.txt +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/README.rst +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/README.rst.license +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/SOURCES.txt +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/dependency_links.txt +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/requires.txt +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/top_level.txt +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/__init__.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/_static/favicon.ico +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/_static/favicon.ico.license +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/api.rst +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/api.rst.license +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/conf.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/examples.rst +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/examples.rst.license +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/index.rst +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/index.rst.license +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_eyespi_beret_animated_gif.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_fbcp.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_hx8357test.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_ili9341test.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_minipitftstats.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_minipitfttest.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_animated_gif.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_bonnet_buttons.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_demo.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_image.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_stats.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_simpletest.py +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/mypy.ini +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/optional_requirements.txt +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/requirements.txt +0 -0
- {adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/setup.cfg +0 -0
@@ -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
|
@@ -12,7 +12,7 @@ requires = [
|
|
12
12
|
[project]
|
13
13
|
name = "adafruit-circuitpython-rgb-display"
|
14
14
|
description = "CircuitPython library for RGB displays."
|
15
|
-
version = "3.12.
|
15
|
+
version = "3.12.3"
|
16
16
|
readme = "README.rst"
|
17
17
|
authors = [
|
18
18
|
{name = "Adafruit Industries", email = "circuitpython@adafruit.com"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.gitignore
RENAMED
File without changes
|
File without changes
|
{adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/.pylintrc
RENAMED
File without changes
|
File without changes
|
File without changes
|
{adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/LICENSE
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/README.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/api.rst
RENAMED
File without changes
|
File without changes
|
{adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/docs/conf.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/mypy.ini
RENAMED
File without changes
|
File without changes
|
File without changes
|
{adafruit-circuitpython-rgb-display-3.12.2 → adafruit-circuitpython-rgb-display-3.12.3}/setup.cfg
RENAMED
File without changes
|