neopixel_write — Low-level neopixel implementation

The neopixel_write module contains a helper method to write out bytes in the 800khz neopixel protocol.

neopixel_write.neopixel_write(digitalinout, buf)

Write buf out on the given DigitalInOut.

Parameters:
  • gpio (DigitalInOut) – the DigitalInOut to output with
  • buf (bytearray) – The bytes to clock out. No assumption is made about color order