optoencoder5
2.1.0.0
|
Opto Encoder 5 Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Opto Encoder 5 Click Example.
This example demonstrates the use of the Opto Encoder 5 Click board by detecting eclipse states.
The demo application is composed of two sections :
Initialization of GPIO module, log UART and enables the slotted optical switch.
When the beam from the slotted optical switch is broken by placing an object in the gap ( like a piece of paper ), the counter is incremented by one when the sensor is triggered.
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |