i2c1wire
2.0.0.0
|
I2C 1-Wire click carries DS2482-800, a bridge device that performs bidirectional conversions between I2C masters and 1-Wire slave devices. These can be EEPROM chips, temperature sensors and similar devices that have momentary high source current modes.
We provide a library for the I2C1Wire 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for I2C1Wire Click driver.
i2c1wire_cfg_setup
Config Object Initialization function. i2c1wire_init
Initialization function. i2c1wire_write_byte_one_wire
This function writes one byte to the click module. i2c1wire_read_byte_one_wire
This function reads one byte from the click module. i2c1wire_one_wire_reset
This function does a hardware reset of the click module. This example showcases how to initialize, confiure and use the I2C 1-Wire click. The click
is a I2C (host) to 1-Wire interface (slave). In order for the example to work one or more 1-Wire (GPIO) click modules are required. Gnd goes to gnd, power goes to power and the cha- nnels are there to read data from connected modules.
The demo application is composed of two sections :
This function initializes and configures the logger and click modules.
This function reads all of the channels on the click module and displays any data it acqu-
ires from them with a 100 millisecond delay.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.