daq 2.0.0.0
|
DAQ Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
DAQ Click example.
This example showcases ability of the device to read ADC data and calculate voltage for set configuration.
The demo application is composed of two sections :
Initialization of communication modules (SPI, UART) and additional pins for controling device. Resets device and then configures default configuration and sets read range by setting gain to +-12V. In the end reads vendor and device ID to confirm communication.
Reads ADC data and calculates voltage from it, every 0.3 seconds.
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 | ) |