docs: Remove reference to obsolete neopixel_write function.

It has been replaced by machine.bitstream.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-02-02 16:27:10 +11:00
parent 872bab6b3c
commit 326b2c79df
2 changed files with 3 additions and 11 deletions

View File

@ -599,18 +599,14 @@ The APA106 driver extends NeoPixel, but internally uses a different colour order
ap = APA106(pin, 8) ap = APA106(pin, 8)
r, g, b = ap[0] r, g, b = ap[0]
For low-level driving of a NeoPixel::
import esp
esp.neopixel_write(pin, grb_buf, is800khz)
.. Warning:: .. Warning::
By default ``NeoPixel`` is configured to control the more popular *800kHz* By default ``NeoPixel`` is configured to control the more popular *800kHz*
units. It is possible to use alternative timing to control other (typically units. It is possible to use alternative timing to control other (typically
400kHz) devices by passing ``timing=0`` when constructing the 400kHz) devices by passing ``timing=0`` when constructing the
``NeoPixel`` object. ``NeoPixel`` object.
The low-level driver uses an RMT channel by default. To configure this see For low-level driving of a NeoPixel see `machine.bitstream`.
This low-level driver uses an RMT channel by default. To configure this see
`RMT.bitstream_channel`. `RMT.bitstream_channel`.
APA102 (DotStar) uses a different driver as it has an additional clock pin. APA102 (DotStar) uses a different driver as it has an additional clock pin.

View File

@ -374,17 +374,13 @@ Use the ``neopixel`` module::
np.write() # write data to all pixels np.write() # write data to all pixels
r, g, b = np[0] # get first pixel colour r, g, b = np[0] # get first pixel colour
For low-level driving of a NeoPixel::
import esp
esp.neopixel_write(pin, grb_buf, is800khz)
.. Warning:: .. Warning::
By default ``NeoPixel`` is configured to control the more popular *800kHz* By default ``NeoPixel`` is configured to control the more popular *800kHz*
units. It is possible to use alternative timing to control other (typically units. It is possible to use alternative timing to control other (typically
400kHz) devices by passing ``timing=0`` when constructing the 400kHz) devices by passing ``timing=0`` when constructing the
``NeoPixel`` object. ``NeoPixel`` object.
For low-level driving of a NeoPixel see `machine.bitstream`.
APA102 driver APA102 driver
------------- -------------