Skip to content

davraf-amuro/dr-arduino-i2c-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dr-arduino-i2c-tester

Ardunino: a class to check I2C bus

I transformed the classic function to check the status of the I2C bus into a class. This way when I turn on a hardware I can make sure that the peripherals are connected

Usage

  1. I2CTest i2cTest; Create an instance of the class
  2. i2cTest.begin(Wire); inject your Wire object, so you pilot the bus from main class
  3. int* addresses = i2cTest.scan(count); execute the scan. 'count' indicates how many devices were found, while 'addresses' is the array of devices addresses

The main.cpp contain a full example

About

Ardunino: a class to check I2C bus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages