jacdac.led_single

Submodules

Package Contents

Classes

LedSingleClient

A controller for 1 or more monochrome or RGB LEDs connected in parallel.

class jacdac.led_single.LedSingleClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

A controller for 1 or more monochrome or RGB LEDs connected in parallel. Implements a client for the LED Single service.

property color: Tuple[int, int, int] | None

The current color of the LED.,

property max_power: int | None

(Optional) Limit the power drawn by the light-strip (and controller)., _: mA

property led_count: int | None

(Optional) If known, specifies the number of LEDs in parallel on this device.,

property wave_length: int | None

(Optional) If monochrome LED, specifies the wave length of the LED., _: nm

property luminous_intensity: int | None

(Optional) The luminous intensity of the LED, at full value, in micro candella., _: mcd

property variant: jacdac.led_single.constants.LedSingleVariant | None

(Optional) The physical type of LED.,

animate(to_red: int, to_green: int, to_blue: int, speed: int) None

This has the same semantics as set_status_light in the control service.