OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
input.rotary_encoder_input_adapter.RotaryEncoderInputAdapter Class Reference

Connect a RotaryEncoderIf to the generic input subsystem. More...

Public Member Functions

bool is_connected (self)
 Return whether the physical encoder is being monitored.
None connect (self)
 Start receiving physical rotary encoder events.
None disconnect (self)
 Stop receiving physical rotary encoder events.
None poll (self)
 Perform implementation-specific encoder polling.

Protected Member Functions

None _rotated (self, int turns)
 Forward signed encoder rotation as an InputEvent.
None _button_pressed (self)
 Forward a physical encoder-button press.
None _button_released (self)
 Forward a physical encoder-button release.

Detailed Description

Connect a RotaryEncoderIf to the generic input subsystem.

Member Function Documentation

◆ poll()

None input.rotary_encoder_input_adapter.RotaryEncoderInputAdapter.poll ( self)

Perform implementation-specific encoder polling.

Callback-driven encoders may implement this as a no-op.


The documentation for this class was generated from the following file:
  • controllers/input/rotary_encoder_input_adapter.py