irdistance 2.0.0.0
|
IR distance Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
IR distance Click example.
The click board outputs an analog voltage corresponding to the distance of the object (through the mikroBUS AN pin). An Enable (EN) pin is also utilized.
The demo application is composed of two sections :
Initialization driver enables GPIO, enable IR sensor, initialization ADC, also write log.
This is an example which demonstrates the use of IR Distance click board. IR Distance click reads and displays ADC value. Results are being sent to the Usart Terminal where you can track their changes. All data logs on USB uart change for every 1 sec.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |