Skip to content

Instantly share code, notes, and snippets.

@harrisjr1
harrisjr1 / I2C_Adapter.ino
Created October 15, 2017 19:43 — forked from kraftb/I2C_Adapter.ino
USB to I2C Adapter using Arduino
// I2C to USB Adapter using Arduino
// by Bernhard Kraft <[email protected]>
/**
* This sketch can get loaded onto an Arduino to use it as USB to I2C Adapter.
* It uses the Wire library. So take a look at the documentation of the Wire
* libarary about the pins being used as SDA/SCL. For most Arduino boards this
* will be analog input pin 4 for SDA and analog input pin 5 for SCL.
*
* On the USB side the default serial link of the Arduino is used. A protocol