Go to the source code of this file.
Defines | |
#define | ENC_COUNTA TCNT0 |
#define | ENC_COUNTB TCNT3 |
#define | INDEX BITREAD(PORTB,0) |
Functions | |
void | encoder_init (void) |
int16_t | encoder_read () |
void | encoder_reset () |
Header for encoder setup and position acquisition. Contains gray code converter code from Peter Dannegger from Mikrocontroller.net, for glitchless encoder position evaluation
Definition in file encoder.h.
#define ENC_COUNTA TCNT0 |
#define ENC_COUNTB TCNT3 |
void encoder_init | ( | void | ) |
int16_t encoder_read | ( | ) |
void encoder_reset | ( | ) |