knob_data.h 359 B

12345678910111213141516171819
  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. float endstop_strength_unit;
  9. float snap_point;
  10. char descriptor[50];
  11. };
  12. struct KnobState {
  13. int32_t current_position;
  14. float sub_position_unit;
  15. KnobConfig config;
  16. };