dac10 2.0.0.0
|
DAC10 Click example. More...
Macros | |
#define | REFERENCE_VOLTAGE 3.3 |
#define | NUMBER_OF_STEPS 20 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
DAC10 Click example.
This example demonstrates the use of DAC 10 click board.
The demo application is composed of two sections :
Initializes the driver, checks the communication by reading and verifying the device ID, and enables the DAC output.
Changes the output voltage every 2 seconds and logs the voltage value on the USB UART. It will go through the entire voltage range taking into account the number of steps which is defined below.
#define NUMBER_OF_STEPS 20 |
#define REFERENCE_VOLTAGE 3.3 |
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 | ) |