mpf.platforms.opp.opp_neopixel

OPP WS2812 wing.

class mpf.platforms.opp.opp_neopixel.OPPNeopixel(number, neo_card)

One WS2812 LED.

Initialise LED.

color(color)

Instantly set this LED to the color passed.

Parameters:
  • color – a 3-item list of integers representing R, G, and B values,
  • each. (0-255) –
class mpf.platforms.opp.opp_neopixel.OPPNeopixelCard(chain_serial, addr, neo_card_dict, platform)

OPP Neopixel/WS2812 card.

Initialise OPP Neopixel/WS2812 card.

add_neopixel(number, neo_dict)

Add a LED channel.