Skip to content

Commit 326b2c7

Browse files
committed
docs: Remove reference to obsolete neopixel_write function.
It has been replaced by machine.bitstream. Signed-off-by: Damien George <[email protected]>
1 parent 872bab6 commit 326b2c7

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

docs/esp32/quickref.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -599,18 +599,14 @@ The APA106 driver extends NeoPixel, but internally uses a different colour order
599599
ap = APA106(pin, 8)
600600
r, g, b = ap[0]
601601

602-
For low-level driving of a NeoPixel::
603-
604-
import esp
605-
esp.neopixel_write(pin, grb_buf, is800khz)
606-
607602
.. Warning::
608603
By default ``NeoPixel`` is configured to control the more popular *800kHz*
609604
units. It is possible to use alternative timing to control other (typically
610605
400kHz) devices by passing ``timing=0`` when constructing the
611606
``NeoPixel`` object.
612607

613-
The low-level driver uses an RMT channel by default. To configure this see
608+
For low-level driving of a NeoPixel see `machine.bitstream`.
609+
This low-level driver uses an RMT channel by default. To configure this see
614610
`RMT.bitstream_channel`.
615611

616612
APA102 (DotStar) uses a different driver as it has an additional clock pin.

docs/esp8266/quickref.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,17 +374,13 @@ Use the ``neopixel`` module::
374374
np.write() # write data to all pixels
375375
r, g, b = np[0] # get first pixel colour
376376

377-
For low-level driving of a NeoPixel::
378-
379-
import esp
380-
esp.neopixel_write(pin, grb_buf, is800khz)
381-
382377
.. Warning::
383378
By default ``NeoPixel`` is configured to control the more popular *800kHz*
384379
units. It is possible to use alternative timing to control other (typically
385380
400kHz) devices by passing ``timing=0`` when constructing the
386381
``NeoPixel`` object.
387382

383+
For low-level driving of a NeoPixel see `machine.bitstream`.
388384

389385
APA102 driver
390386
-------------

0 commit comments

Comments
 (0)