fix(radio): issues with rotary encoder (#5194)

- detection of initial direction of encoder after startup
- change of direction issue on radios with incorrectly wired encoder
- handle all wiring variations (without needing special #defines)
- handle the case when the radio is started with the encoder not on a detent position
This commit is contained in:
philmoz
2024-06-21 12:00:44 +10:00
committed by GitHub
parent cc630033b8
commit d84a78cc1d
6 changed files with 84 additions and 85 deletions
-3
View File
@@ -303,9 +303,6 @@
#define USE_EXTI15_10_IRQ
#define EXTI15_10_IRQ_Priority 5
#endif
#if defined(RADIO_TX12)
#define ROTARY_ENCODER_SUPPORT_BUGGY_WIRING
#endif
#if defined(RADIO_TX12MK2) || defined(RADIO_BOXER) || defined(RADIO_ZORRO) || defined(RADIO_MT12) || defined(RADIO_POCKET) || defined(RADIO_T14)
#define ROTARY_ENCODER_INVERTED
#endif