First release of a Software I2C implementation, Tested and confirmed to work with the BMP085 Barometric Pressure Sensor
Fork of SoftwareI2C by
Diff: SoftwareI2C.h
- Revision:
- 3:adc1a829ed60
- Parent:
- 2:8670e78c4b63
--- a/SoftwareI2C.h Sun Apr 01 22:52:47 2012 +0000 +++ b/SoftwareI2C.h Fri May 15 07:21:42 2015 +0000 @@ -126,10 +126,12 @@ _sda.input(); _sda.mode(OpenDrain); wait_us(_frequency_delay); + if(_sda != 0){ + _scl = 0; + return false; + } _scl = 0; - if(_sda != 0){return false;} - wait_us(_frequency_delay); return true; }