Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SoftwareI2C by
Revision 3:adc1a829ed60, committed 2015-05-15
- Comitter:
- maruta
- Date:
- Fri May 15 07:21:42 2015 +0000
- Parent:
- 2:8670e78c4b63
- Commit message:
- initial commit;
Changed in this revision
SoftwareI2C.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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; }