Skip to content
/ I2C Public
forked from rambo/I2C

Arduino I2C Master library (originally by Wayne Truchsess)

Notifications You must be signed in to change notification settings

mikko80/I2C

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino I2C master library

A better I2C master library, originally by Wayne Truchsess. See http://dsscircuits.com/index.php/articles/66-arduino-i2c-master-library

On most Arduino boards, SDA (data line) is on analog input pin 4, and SCL (clock line) is on analog input pin 5. On the Arduino Mega, SDA is digital pin 20 and SCL is 21. (source: https://www.arduino.cc/en/Reference/Wire)

Pro tip

For devices that don't use de-facto standard register scheme you can use the low-level methods directly

I2c.start();
I2c.sendAddress(slave_addr);
I2c.sendByte(my_byte);
I2c.stop();

About

Arduino I2C Master library (originally by Wayne Truchsess)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%