solidswitch2 2.1.0.0
|
SolidSwitch 2 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
SolidSwitch 2 Click example.
This example demonstrates the use of SolidSwitch 2 click board by controlling the output state.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which maps outputs as follows: OUT2 - IN0, OUT3 - IN1, OUT4-5 - PWM GEN, OUT6-7 - PWM LED.
Changes the PWM GEN (max to min) and PWM LED (min to max) duty cycle and toggles the IN0 and IN1 pins every 250ms. The duty cycle values and INx toggle messages will be displayed on the USB UART.
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 | ) |