OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
rotary_encoder_runtime._NoOpRotaryEncoder Class Reference

Preserve configured input slots on hosts without Pi hardware. More...

Inheritance diagram for rotary_encoder_runtime._NoOpRotaryEncoder:
hardware_io.rotary_encoder.rotary_encoder_if.RotaryEncoderIf

Public Member Functions

bool is_running (self)
 Return whether the encoder is currently being monitored.
None start (self, RotationCallback rotated, ButtonCallback|None button_pressed=None, ButtonCallback|None button_released=None)
 Start monitoring the rotary encoder.
None stop (self)
 Stop monitoring the rotary encoder.
Public Member Functions inherited from hardware_io.rotary_encoder.rotary_encoder_if.RotaryEncoderIf
None poll (self)
 Perform implementation-specific polling work.

Detailed Description

Preserve configured input slots on hosts without Pi hardware.

Member Function Documentation

◆ is_running()

bool rotary_encoder_runtime._NoOpRotaryEncoder.is_running ( self)

Return whether the encoder is currently being monitored.

Return values
TrueEncoder monitoring is active.
FalseEncoder monitoring is stopped.

Reimplemented from hardware_io.rotary_encoder.rotary_encoder_if.RotaryEncoderIf.

◆ start()

None rotary_encoder_runtime._NoOpRotaryEncoder.start ( self,
RotationCallback rotated,
ButtonCallback | None button_pressed = None,
ButtonCallback | None button_released = None )

Start monitoring the rotary encoder.

Parameters
rotatedCallback receiving signed steps since the prior event; positive values indicate clockwise rotation.
button_pressedOptional callback invoked on button press.
button_releasedOptional callback invoked on button release.

Reimplemented from hardware_io.rotary_encoder.rotary_encoder_if.RotaryEncoderIf.


The documentation for this class was generated from the following file:
  • apps/carUi/runtime/rotary_encoder_runtime.py