buttonalarm 2.0.0.0
|
Button Alarm Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Button Alarm Click Example.
This example showcases how to initialize and use the whole family of Button clicks. One library is used for every single one of them. They are simple touch detectors that send a pressed/released signal and receive a PWM output which controls the backlight on the button.
The demo application is composed of two sections :
This function initializes and configures the logger and click modules.
This example first increases the backlight on the button and then decreases the intensity of the backlight. When the button is touched, reports the event in the console using UART communication.
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 | ) |