jacdac.reflected_light

Submodules

Package Contents

Classes

ReflectedLightClient

A sensor that detects light and dark surfaces, commonly used for line following robots.

class jacdac.reflected_light.ReflectedLightClient(bus: jacdac.bus.Bus, role: str, *, missing_brightness_value: Optional[float] = None)

Bases: jacdac.bus.SensorClient

A sensor that detects light and dark surfaces, commonly used for line following robots. Implements a client for the Reflected light service.

property brightness Optional[float]

Reports the reflected brightness. It may be a digital value or, for some sensor, analog value., _: /

property variant Optional[jacdac.reflected_light.constants.ReflectedLightVariant]

(Optional) Type of physical sensor used,