optoencoder2 2.0.0.0
|
Opto Encoder 2 Click example. More...
Functions | |
void | application_init (void) |
void | application_task () |
int | main (void) |
Opto Encoder 2 Click example.
This application is used to encode motion or rotation.
The demo application is composed of two sections :
Initializes GPIO driver and resets encoder counter to 0 (zero).
If motion is detected - encoder increments or decrements position on each rising edge on Channel A (INT pin) and logs encoder position.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | ) |
int main | ( | void | ) |