|
counter2 2.2.0
|
Counter 2 Click example. More...
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Counter 2 Click example.
This example demonstrates the use of the Counter 2 Click board. The application reads the current pulse count from the board and handles rollover events using the loop counter mechanism. It logs the total number of detected pulses, including those beyond the register's capacity.
The demo application is composed of two sections :
Initializes the logger and the Click board driver and resets the internal pulse counter.
Periodically reads the counter value and checks for rollover (loop) events. Logs the total pulse count every second.
| 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 | ) |