c1wireswitch 2.1.0.0
|
1-Wire Switch Click is a compact add-on board that allows you to switch a device remotely using a 1-wire signal. This board features the DS2413, a dual-channel programmable I/O 1-Wire switch from Analog Devices.
We provide a library for the 1-Wire Switch Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for 1-Wire Switch Click driver.
c1wireswitch_cfg_setup
Config Object Initialization function. c1wireswitch_init
Initialization function. c1wireswitch_default_cfg
Click Default Configuration function. c1wireswitch_set_pio_state
1-Wire Switch write specific programmable I/O state function. c1wireswitch_get_pio_state
1-Wire Switch read specific programmable I/O state function. c1wireswitch_get_pio_latch_state
1-Wire Switch read programmable I/O latch state function. 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.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.