diff options
author | Mike Causer <mcauser@gmail.com> | 2021-04-30 14:24:44 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-05-14 11:41:42 +1000 |
commit | 30cbcf881daeecbc100554879e8a92d71185d9f6 (patch) | |
tree | 0c4baf1debfe7434e0f42376c1452cdb0c738934 | |
parent | 94a3f8a4b0b29e49b8f83c522b5478c94e4d3643 (diff) | |
download | micropython-30cbcf881daeecbc100554879e8a92d71185d9f6.tar.gz micropython-30cbcf881daeecbc100554879e8a92d71185d9f6.zip |
docs/esp32: Add APA106 to quickref.
-rw-r--r-- | docs/esp32/quickref.rst | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst index a569ff0a4e..68938feedc 100644 --- a/docs/esp32/quickref.rst +++ b/docs/esp32/quickref.rst @@ -483,10 +483,10 @@ Be sure to put a 4.7k pull-up resistor on the data line. Note that the ``convert_temp()`` method must be called each time you want to sample the temperature. -NeoPixel driver ---------------- +NeoPixel and APA106 driver +-------------------------- -Use the ``neopixel`` module:: +Use the ``neopixel`` and ``apa106`` modules:: from machine import Pin from neopixel import NeoPixel @@ -497,6 +497,13 @@ Use the ``neopixel`` module:: np.write() # write data to all pixels r, g, b = np[0] # get first pixel colour + +The APA106 driver extends NeoPixel, but internally uses a different colour order:: + + from apa106 import APA106 + ap = APA106(pin, 8) + r, g, b = ap[0] + For low-level driving of a NeoPixel:: import esp @@ -508,6 +515,7 @@ For low-level driving of a NeoPixel:: 400kHz) devices by passing ``timing=0`` when constructing the ``NeoPixel`` object. +APA102 (DotStar) uses a different driver as it has an additional clock pin. Capacitive touch ---------------- |