Skip to content

mikaelpatel/Arduino-TWI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-TWI

The TWI library is an abstract interface for I2C device drivers. The library includes a hardware and software bus manager, and example device drivers for I2C Humidity and Temperature Sensor (Si70XX), Remote 8-bit I/O expander (PCF8574/PCF8574A), Digital Pressure Sensor (BMP085), and Single/Multi-Channel 1-Wire Master (DS2482).

The software bus manager implementation of the TWI interface uses the Arduino-GPIO library. Both software and avr hardware bus manager implementations supports repeated start condition and device driver mutex on multi-tasking.

Repeated start condition allows combined write/read operations to one or more devices without releasing the bus and thus with the guarantee that the operation is not interrupted (when using multiple masters).

Device driver mutex allows a task to complete a device driver function in a synchronized manner when using the Arduino-Scheduler.

Version: 1.9

Classes

Example Sketches

Dependencies