8-Pin I2C Click Board
8-Pin I2C Click Board
The 8-pin I2C Click Board™ is a compact add-on board that represents a breakout board that simplifies the connection of add-on boards with an 8-pin Female Connector to mikroBUS™ socket. This board can be used as I2C Adapter with no main component on itself, with only an onboard connector for connection establishing. The 8-pin I2C Click Board™ has no regional restrictions, no need for special permits, and it is possible to use this Click Board™ worldwide. Being compatible with MFI (Made for iPod) is the most important feature of the 8-pin I2C Click Board™ which ensures its proper operation with additional Apple accessories. This Click Board™ is suitable for expanding the connectivity of the development system with the mikroBUS™, and ideal for communication with numerous devices that share the identical slave address on the same bus.
The 8-pin I2C Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the 8-pin I2C Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library contains a basic functions for using 8 pin I2C click Board™.
Key Functions
void c8pini2c_i2c_write(uint8_t slave_addr, uint8_t *data_buf,uint16_t len, uint8_t end_mode)
- I2C Write functionvoid c8pini2c_i2c_read(uint8_t slave_addr, uint8_t *data_buf,uint16_t len, uint8_t end_mode)
- I2C Read functionvoid c8pini2c_i2c_start ( void )
- I2C Start function
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C module
- Application Initialization - Initializes driver init and set up another click for test
- Application Task - Reads temperature and logs on the USB UART
- NOTE: Surface temp click board used for demonstrating work 8 pin I2C click-a
void application_task ( ) { float temperature; char demo_text[ 20 ]; temperature = surfacetemp_get_temperature( ); FloatToStr( temperature, demo_text ); mikrobus_logWrite( "> Temperature : ", _LOG_TEXT ); mikrobus_logWrite( demo_text, _LOG_LINE ); Delay_ms( 1500 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C Library
- UART Library
- Conversions library
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The 8 pin I2C click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
8-Pin I2C Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.