jacdac.motion
Submodules
Package Contents
Classes
A sensor, typically PIR, that detects object motion within a certain range |
- class jacdac.motion.MotionClient(bus: jacdac.bus.Bus, role: str, *, missing_moving_value: bool | None = None)
Bases:
jacdac.bus.SensorClient
A sensor, typically PIR, that detects object motion within a certain range Implements a client for the Motion service.
- property max_distance: float | None
(Optional) Maximum distance where objects can be detected., _: m
- on_movement(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn
A movement was detected.