2 `neopixel_write` - NeoPixel precision timed writing support
3 =================================================
5 See `CircuitPython:neopixel_write` in CircuitPython for more details.
12 from adafruit_blinka.agnostic import board_name
13 import adafruit_platformdetect.board as ap_board
15 if board_name in (ap_board.RASPBERRY_PI_2B, ap_board.RASPBERRY_PI_3B, ap_board.RASPBERRY_PI_B_PLUS):
16 from adafruit_blinka.microcontroller.bcm283x import neopixel as _neopixel
17 elif "sphinx" in sys.modules:
20 raise NotImplementedError("Board not supported")
23 def neopixel_write(gpio, buf):
24 """Write buf out on the given DigitalInOut."""
25 return _neopixel.neopixel_write(gpio, buf)