encoder.h File Reference
Shaft Encoders.
More...
Detailed Description
The Happyboard has 4 16-bit shaft encoders. The shaft encoders are fed into the FPGA which manages the filtering and counting. The inputs are filtered with a simple debouncing-filter to remove spurious counts.
Function Documentation
void encoder_init |
( |
void |
|
) |
|
Initialize the encoders. Should not be called by user.
uint16_t encoder_read |
( |
uint8_t |
encoder |
) |
|
Return the count value for a specific shaft encoder
- Parameters:
-
| encoder | encoder to read (24-27) |
void encoder_reset |
( |
uint8_t |
encoder |
) |
|
Reset the encoder count value for a specific shaft encoder
- Parameters:
-
| encoder | encoder to reset (24-27) |