RPiPico-Holonome2023/QEI.h

17 lines
280 B
C
Raw Permalink Normal View History

struct QEI_t{
int value;
int delta;
};
enum QEI_name_t{
QEI_A_NAME=0,
QEI_B_NAME=1,
QEI_C_NAME=2
};
2022-11-18 14:16:13 +00:00
extern struct QEI_t QEI_A, QEI_B, QEI_C;
void QEI_update(void);
2022-11-18 14:16:13 +00:00
void QEI_init(void);
int QEI_get(enum QEI_name_t qei);
2023-04-28 21:51:43 +00:00
float QEI_get_mm(enum QEI_name_t qei);