adafruit-circuitpython-rgb-display 3.12.1__tar.gz → 3.12.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/PKG-INFO +1 -1
  2. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/PKG-INFO +1 -1
  3. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/hx8353.py +1 -1
  4. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/hx8357.py +1 -1
  5. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/ili9341.py +1 -1
  6. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/rgb.py +10 -5
  7. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/s6d02a1.py +1 -1
  8. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/ssd1331.py +1 -1
  9. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/ssd1351.py +1 -1
  10. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/st7735.py +1 -1
  11. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/st7789.py +1 -1
  12. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/conf.py +4 -13
  13. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/requirements.txt +2 -1
  14. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/pyproject.toml +1 -1
  15. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md +0 -0
  16. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/.github/workflows/build.yml +0 -0
  17. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/.github/workflows/failure-help-text.yml +0 -0
  18. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/.github/workflows/release_gh.yml +0 -0
  19. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/.github/workflows/release_pypi.yml +0 -0
  20. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/.gitignore +0 -0
  21. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/.pre-commit-config.yaml +0 -0
  22. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/.pylintrc +0 -0
  23. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/.readthedocs.yaml +0 -0
  24. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/CODE_OF_CONDUCT.md +0 -0
  25. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/LICENSE +0 -0
  26. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/LICENSES/CC-BY-4.0.txt +0 -0
  27. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/LICENSES/MIT.txt +0 -0
  28. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/LICENSES/Unlicense.txt +0 -0
  29. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/README.rst +0 -0
  30. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/README.rst.license +0 -0
  31. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/SOURCES.txt +0 -0
  32. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/dependency_links.txt +0 -0
  33. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/requires.txt +0 -0
  34. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_circuitpython_rgb_display.egg-info/top_level.txt +0 -0
  35. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/adafruit_rgb_display/__init__.py +0 -0
  36. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/_static/favicon.ico +0 -0
  37. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/_static/favicon.ico.license +0 -0
  38. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/api.rst +0 -0
  39. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/api.rst.license +0 -0
  40. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/examples.rst +0 -0
  41. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/examples.rst.license +0 -0
  42. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/index.rst +0 -0
  43. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/docs/index.rst.license +0 -0
  44. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_eyespi_beret_animated_gif.py +0 -0
  45. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_fbcp.py +0 -0
  46. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_hx8357test.py +0 -0
  47. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_ili9341test.py +0 -0
  48. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_minipitftstats.py +0 -0
  49. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_minipitfttest.py +0 -0
  50. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_animated_gif.py +0 -0
  51. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_bonnet_buttons.py +0 -0
  52. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_demo.py +0 -0
  53. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_image.py +0 -0
  54. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_pillow_stats.py +0 -0
  55. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/examples/rgb_display_simpletest.py +0 -0
  56. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/mypy.ini +0 -0
  57. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/optional_requirements.txt +0 -0
  58. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/requirements.txt +0 -0
  59. {adafruit-circuitpython-rgb-display-3.12.1 → adafruit-circuitpython-rgb-display-3.12.3}/setup.cfg +0 -0
@@ -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
@@ -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
@@ -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)
@@ -101,19 +101,10 @@ todo_emit_warnings = True
101
101
  # The theme to use for HTML and HTML Help pages. See the documentation for
102
102
  # a list of builtin themes.
103
103
  #
104
- on_rtd = os.environ.get("READTHEDOCS", None) == "True"
105
-
106
- if not on_rtd: # only import and set the theme if we're building docs locally
107
- try:
108
- import sphinx_rtd_theme
109
-
110
- html_theme = "sphinx_rtd_theme"
111
- html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
112
- except:
113
- html_theme = "default"
114
- html_theme_path = ["."]
115
- else:
116
- html_theme_path = ["."]
104
+ import sphinx_rtd_theme
105
+
106
+ html_theme = "sphinx_rtd_theme"
107
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
117
108
 
118
109
  # Add any paths that contain custom static files (such as style sheets) here,
119
110
  # relative to this directory. They are copied after the builtin static files,
@@ -2,5 +2,6 @@
2
2
  #
3
3
  # SPDX-License-Identifier: Unlicense
4
4
 
5
- sphinx>=4.0.0
5
+ sphinx
6
6
  sphinxcontrib-jquery
7
+ sphinx-rtd-theme
@@ -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.1"
15
+ version = "3.12.3"
16
16
  readme = "README.rst"
17
17
  authors = [
18
18
  {name = "Adafruit Industries", email = "circuitpython@adafruit.com"}