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
-2
View File
@@ -63,8 +63,6 @@ rotenc_t rotaryEncoderGetValue()
return rotencValue / ROTARY_ENCODER_GRANULARITY;
}
rotenc_t rotaryEncoderGetRawValue() { return rotencValue; }
// TODO: remove all STM32 defs
extern const etx_hal_adc_driver_t simu_adc_driver;