jacdac.traffic_light

Submodules

Package Contents

Classes

TrafficLightClient

Controls a mini traffic with a red, orange and green LED.

class jacdac.traffic_light.TrafficLightClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

Controls a mini traffic with a red, orange and green LED. Implements a client for the Traffic Light service.

property red: bool | None

The on/off state of the red light.,

property yellow: bool | None

The on/off state of the yellow light.,

property green: bool | None

The on/off state of the green light.,