c1wireswitch 2.1.0.0
|
1-Wire Switch Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
1-Wire Switch Click Example.
This library contains API for 1-Wire Switch Click driver. The library initializes and defines the 1-Wire bus drivers to write and read data for state programmable I/O, as well as the default configuration.
The demo application is composed of two sections :
Initializes the driver and performs default configuration and sets the PIO A to OFF and PIO B to ON state.
This example demonstrates the use of the 1-Wire Switch Click board by changing the PIO A state, which is controlling the LED, every time the state of PIO B changes. Change on the PIO B happens when the button is pushed.
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 | ) |