adafruit-circuitpython-neopixel 6.3.15__py3-none-any.whl → 6.3.16__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.

Potentially problematic release.


This version of adafruit-circuitpython-neopixel might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: adafruit-circuitpython-neopixel
3
- Version: 6.3.15
3
+ Version: 6.3.16
4
4
  Summary: CircuitPython library for NeoPixel LEDs.
5
5
  Author-email: Adafruit Industries <circuitpython@adafruit.com>
6
6
  License: MIT
@@ -17,6 +17,7 @@ License-File: LICENSE
17
17
  Requires-Dist: Adafruit-Blinka
18
18
  Requires-Dist: adafruit-circuitpython-pixelbuf
19
19
  Provides-Extra: optional
20
+ Dynamic: license-file
20
21
 
21
22
 
22
23
  Adafruit CircuitPython NeoPixel
@@ -34,9 +35,9 @@ Adafruit CircuitPython NeoPixel
34
35
  :target: https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel/actions/
35
36
  :alt: Build Status
36
37
 
37
- .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
38
- :target: https://github.com/psf/black
39
- :alt: Code Style: Black
38
+ .. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
39
+ :target: https://github.com/astral-sh/ruff
40
+ :alt: Code Style: Ruff
40
41
 
41
42
  Higher level NeoPixel driver that presents the strip as a sequence. This is a
42
43
  supercharged version of the original MicroPython driver. Its now more like a
@@ -0,0 +1,6 @@
1
+ neopixel.py,sha256=cS8uWnZ22PY31cbCvCF5xsxbvKJ_ZormObYeseKk5Mo,4982
2
+ adafruit_circuitpython_neopixel-6.3.16.dist-info/licenses/LICENSE,sha256=z_ypcU6FIB47QfUALXdEHz3sbP7W5KSUy3YzmFLIl8w,1142
3
+ adafruit_circuitpython_neopixel-6.3.16.dist-info/METADATA,sha256=2d3tfWFkXuwuNksIv73bSAURInvNctZS2NKjAiBbZsw,6222
4
+ adafruit_circuitpython_neopixel-6.3.16.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
5
+ adafruit_circuitpython_neopixel-6.3.16.dist-info/top_level.txt,sha256=4Vx2uj1m66N8r0BTOEkPYDuhk-Vv8KOqOldkkJSeib4,9
6
+ adafruit_circuitpython_neopixel-6.3.16.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (80.7.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
neopixel.py CHANGED
@@ -13,22 +13,23 @@
13
13
  """
14
14
 
15
15
  import sys
16
+
17
+ import adafruit_pixelbuf
16
18
  import board
17
19
  import digitalio
18
20
  from neopixel_write import neopixel_write
19
21
 
20
- import adafruit_pixelbuf
21
-
22
22
  try:
23
23
  # Used only for typing
24
- from typing import Optional, Type
25
24
  from types import TracebackType
25
+ from typing import Optional, Type
26
+
26
27
  import microcontroller
27
28
  except ImportError:
28
29
  pass
29
30
 
30
31
 
31
- __version__ = "6.3.15"
32
+ __version__ = "6.3.16"
32
33
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel.git"
33
34
 
34
35
 
@@ -111,7 +112,7 @@ class NeoPixel(adafruit_pixelbuf.PixelBuf):
111
112
  bpp: int = 3,
112
113
  brightness: float = 1.0,
113
114
  auto_write: bool = True,
114
- pixel_order: str = None
115
+ pixel_order: str = None,
115
116
  ):
116
117
  if not pixel_order:
117
118
  pixel_order = GRB if bpp == 3 else GRBW
@@ -120,10 +121,7 @@ class NeoPixel(adafruit_pixelbuf.PixelBuf):
120
121
  pixel_order = "".join(order_list)
121
122
 
122
123
  self._power = None
123
- if (
124
- sys.implementation.version[0] >= 7
125
- and getattr(board, "NEOPIXEL", None) == pin
126
- ):
124
+ if sys.implementation.version[0] >= 7 and getattr(board, "NEOPIXEL", None) == pin:
127
125
  power = getattr(board, "NEOPIXEL_POWER_INVERTED", None)
128
126
  polarity = power is None
129
127
  if not power:
@@ -135,9 +133,7 @@ class NeoPixel(adafruit_pixelbuf.PixelBuf):
135
133
  except ValueError:
136
134
  pass
137
135
 
138
- super().__init__(
139
- n, brightness=brightness, byteorder=pixel_order, auto_write=auto_write
140
- )
136
+ super().__init__(n, brightness=brightness, byteorder=pixel_order, auto_write=auto_write)
141
137
 
142
138
  self.pin = digitalio.DigitalInOut(pin)
143
139
  self.pin.direction = digitalio.Direction.OUTPUT
@@ -1,6 +0,0 @@
1
- neopixel.py,sha256=yb2SrjQ3M5z0nbDme0mTJPFQSOnNCCdZt9YTR3vhyBc,5038
2
- adafruit_circuitpython_neopixel-6.3.15.dist-info/LICENSE,sha256=z_ypcU6FIB47QfUALXdEHz3sbP7W5KSUy3YzmFLIl8w,1142
3
- adafruit_circuitpython_neopixel-6.3.15.dist-info/METADATA,sha256=m5t2DAQydykG7Kiu8xiniRM39qi9cCFcQ31bf2BZsyA,6144
4
- adafruit_circuitpython_neopixel-6.3.15.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
5
- adafruit_circuitpython_neopixel-6.3.15.dist-info/top_level.txt,sha256=4Vx2uj1m66N8r0BTOEkPYDuhk-Vv8KOqOldkkJSeib4,9
6
- adafruit_circuitpython_neopixel-6.3.15.dist-info/RECORD,,