module documentation

LED Module

This module provides the classes for the driving string connected LEDs such as NeoPixel etc.

Each string is driven by a single GPIO pin. We use NeoPixels as on board indicators and as such we only expect a short string of LEDs and there will only be one string per board.

This version uses a PIO state machine to drive the LEDs.

Only one string of max. length five LEDs is supported on GPIO 22

Class BlkLed Led used to indicate block status.
Class ComsLed Led used to indicate communications status.
Class LedMan Indication LED Manager
Class NeoLed NeoPixel Led
Class NeoString String of NeoPixels
Function ws2812_tx Write to ws2812 led string.
Constant _MAX_LEN Undocumented
@rp2.asm_pio(sideset_init=rp2.PIO.OUT_LOW, out_shiftdir=rp2.PIO.SHIFT_LEFT, autopull=True, pull_thresh=24)
def ws2812_tx():

Write to ws2812 led string.

This is a PIO program to write to a string of ws2812 (neopixel leds).

_MAX_LEN =

Undocumented

Value
const(5)