knob_data.h 317 B

1234567891011121314151617
  1. #pragma once
  2. #include <Arduino.h>
  3. struct KnobConfig {
  4. int32_t num_positions;
  5. int32_t position;
  6. float position_width_radians;
  7. float detent_strength_unit;
  8. };
  9. struct KnobState {
  10. int32_t num_positions;
  11. int32_t current_position;
  12. float sub_position_unit;
  13. float position_width_radians;
  14. };