adc20 2.1.0.0
|
ADC 20 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
ADC 20 Click example.
This example demonstrates the use of ADC 20 click board by displaying the state of 8 channels configured as analog inputs (CH2-CH5), digital inputs (CH0-CH1) and digital outputs (CH6-CH7).
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Starts the auto sequence mode, reads the 12bit ADC value from analog input channels (CH2-CH5) and displays the values converted to voltage on the USB UART. After that, stops auto sequence mode and toggles the state of digital output pins (CH6-CH7), then reads and displays the state of all GPIO pins.
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 | ) |