TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136726 times)
  2. FAT32 Library (69944 times)
  3. Network Ethernet Library (55941 times)
  4. USB Device Library (46265 times)
  5. Network WiFi Library (41886 times)
  6. FT800 Library (41169 times)
  7. GSM click (28983 times)
  8. PID Library (26412 times)
  9. mikroSDK (26358 times)
  10. microSD click (25369 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

I2C Demo

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.0.0.4

mikroSDK Library: 2.0.0.0

Category: EEPROM

Downloaded: 36 times

Not followed.

License: MIT license  

The application demonstrates I2C SDK functionality.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "I2C Demo" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "I2C Demo" changes.

Do you want to report abuse regarding "I2C Demo".

  • Information
  • Comments (0)

mikroSDK Library Blog

I2C DEMO

This is a simple example that utilizes mikroSDK 2.0 I2C driver library. In this demo, we use EEPROM click to write 20 bytes of data and read them back. Written and read data is printed out on the Standard output - Application output or UART, determined by the chosen setup.


  • Author : MIKROE
  • Version : 2.0.0.4
  • Date : July 2023.

Hardware support

image

  • Note: You can also use a logic analyzer to see signals and data.

Software Support

We provide code for demonstrating the usage of functions contained in I2C driver library. To run this example, follow these steps:

  1. Install the package from Package manager.
  2. Open example.
  3. It will take you to setups, so make one for your hardware.
  4. Choose adequate setup and the project will open.
  5. Program it by clicking on Flash.
  6. If transfer completes successfully, INT pin on the Tester click will light up.

Transferred data can also be seen on the Application output or UART terminal, depending on the chosen setup.

example


ALSO FROM THIS AUTHOR

LED Driver 16 click

0

LED Driver 16 Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the PCA9745B, an SPI-configurable sixteen-channel constant current LED driver from NXP Semiconductors. Each LED output has an 8-bit resolution (256 steps) fixed-frequency individual PWM controller that operates at 31.25kHz with an adjustable duty cycle from 0 to 100% to allow the LED to be set to a specific brightness value. Powered through a selected mikroBUS™ power rail, either 3.3V or 5V, it provides a maximum output current of 57mA per channel and multiple built-in protection functions that protect the circuit during abnormalities.

[Learn More]

Magneto 5 click

0

Magneto 5 click is a very accurate and reliable magnetic sensor device, which features the MEMSIC MMC34160PJ, a 3-axis magnetic sensor IC

[Learn More]

PROFET 2 3A click

0

PROFET 2 Click is a compact add-on board that contains a smart high-side power switch. This board features the BTS70802EPAXUMA1, a dual-channel, high-side power switch with embedded protection and diagnosis feature from Infineon Technologies.

[Learn More]