aboutsummaryrefslogtreecommitdiff
path: root/libraries/Wire/HardWire.cpp
AgeCommit message (Collapse)Author
2012-08-31Fixups for Wire library builds.Marti Bolivar
Add libraries directory to global include path, so Wire sub-headers can be included in a directory-independent way. Tweak Wire global declaration and definition so it builds. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-29libraries/Wire: Cosmetics, include style touchups.Marti Bolivar
Switch to the new include style. Move includes in headers inside the include guards, for the GCC multiple include parser optimization. Make 80-column clean. Add newlines at end of files. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-29Add new hard/soft Wire I2C library.Trystan Jones
Added a generic pure abstract class to provide the interface for all Wire implementations. Modified the old Wire library using software interface to use the new Base Wire abstract class. Added a new library which allows the use of the Wire class to use the I2C hardware. Changed default pin numbers for Software Wire library to match pin numbers used for I2C/TWI shields created for the Arduino. Signed-off-by: Trystan Jones <crenn6977@gmail.com>