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
- Abstract Two-Wire Bus Manager and Device Driver Interface, TWI
- AVR Two-Wire Bus Manager, Hardware::TWI
- SAM Two-Wire Bus Manager, Hardware::TWI
- Software Two-Wire Bus Manager, Software::TWI
- Digital Pressure Sensor, BMP085
- Humidity and Temperature Sensor, Si70XX
- Remote 8-bit I/O expander, PCF8574
- Single/Multi-Channel 1-Wire Master, DS2482-100/800