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
-4
View File
@@ -40,9 +40,5 @@ void rotaryEncoderInit();
// return impulses / granularity
rotenc_t rotaryEncoderGetValue();
// returns raw # impulses
rotenc_t rotaryEncoderGetRawValue();
int8_t rotaryEncoderGetAccel();
void rotaryEncoderResetAccel();