File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ class NeoPixel_SPI(_pixelbuf.PixelBuf):
81
81
:param bool auto_write: True if the neopixels should immediately change when set. If False,
82
82
``show`` must be called explicitly.
83
83
: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.
85
86
:param float reset_time: Reset low level time in seconds. Default is 80e-6.
86
87
:param byte bit0: Bit pattern to set timing for a NeoPixel 0 bit.
87
88
:param byte bit1: Bit pattern to set timing for a NeoPixel 1 bit.
@@ -134,7 +135,7 @@ def __init__(
134
135
freq = spibus .frequency
135
136
except AttributeError :
136
137
# use nominal
137
- freq = sfrequency
138
+ freq = frequency
138
139
self ._reset = bytes ([0 ] * round (freq * self ._trst / 8 ))
139
140
self ._spibuf = bytearray (8 * n * bpp )
140
141
You can’t perform that action at this time.
0 commit comments