Fix rotary encoder relative change function

This commit is contained in:
2020-02-16 18:17:10 +01:00
parent 85ecc3064a
commit 532262f670
4 changed files with 39 additions and 5 deletions

View File

@@ -34,4 +34,6 @@
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#define ABS(a) ((a) < 0 ? (-1*(a)) : (a))
#endif /* __HELPER_MACROS_H__ */

View File

@@ -35,7 +35,7 @@ void rotary_encoder_setup(void);
uint32_t rotary_encoder_get_abs_val(void);
int32_t rotary_encoder_get_chage_val(void);
int32_t rotary_encoder_get_change_val(void);
void rotary_encoder_stop(void);