Skip to content

Commit db698da

Browse files
committed
lint
1 parent abbdf44 commit db698da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

neopixel_spi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ class NeoPixel_SPI(_pixelbuf.PixelBuf):
8181
:param bool auto_write: True if the neopixels should immediately change when set. If False,
8282
``show`` must be called explicitly.
8383
:param tuple pixel_order: Set the pixel color channel order. GRBW is set by default.
84-
:param int frequency: SPI bus frequency. For 800kHz NeoPixels, use 6400000 (default). For 400kHz, use 3200000.
84+
:param int frequency: SPI bus frequency. For 800kHz NeoPixels, use 6400000 (default). For 400kHz,
85+
use 3200000.
8586
:param float reset_time: Reset low level time in seconds. Default is 80e-6.
8687
:param byte bit0: Bit pattern to set timing for a NeoPixel 0 bit.
8788
:param byte bit1: Bit pattern to set timing for a NeoPixel 1 bit.
@@ -134,7 +135,7 @@ def __init__(
134135
freq = spibus.frequency
135136
except AttributeError:
136137
# use nominal
137-
freq = sfrequency
138+
freq = frequency
138139
self._reset = bytes([0] * round(freq * self._trst / 8))
139140
self._spibuf = bytearray(8 * n * bpp)
140141

0 commit comments

Comments
 (0)