10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d732f4 commit a91592dCopy full SHA for a91592d
shared-bindings/neopixel_write/__init__.c
@@ -41,6 +41,20 @@
41
//| The `neopixel_write` module contains a helper method to write out bytes in
42
//| the 800khz neopixel protocol.
43
//|
44
+//| For example, to turn off a single neopixel (like the status pixel on Express
45
+//| boards.)
46
+//|
47
+//| .. code-block:: python
48
49
+//| import board
50
+//| import neopixel_write
51
+//| import digitalio
52
53
+//| pin = digitalio.DigitalInOut(board.NEOPIXEL)
54
+//| pin.direction = digitalio.Direction.output
55
+//| pixel_off = bytearray([0, 0, 0])
56
+//| neopixel_write(pin, pixel_off)
57
58
//| .. method:: neopixel_write.neopixel_write(digitalinout, buf)
59
60
//| Write buf out on the given DigitalInOut.
0 commit comments