jacdac.rotary_encoder.client
Module Contents
Classes
An incremental rotary encoder - converts angular motion of a shaft to digital signal. |
- class jacdac.rotary_encoder.client.RotaryEncoderClient(bus: jacdac.bus.Bus, role: str, *, missing_position_value: int | None = None)
Bases:
jacdac.bus.SensorClient
An incremental rotary encoder - converts angular motion of a shaft to digital signal. Implements a client for the Rotary encoder service.
- property position: int | None
Upon device reset starts at 0 (regardless of the shaft position). Increases by 1 for a clockwise “click”, by -1 for counter-clockwise., _: #