lib
Fork of DS1338 by
Revision 2:c62527bddf0f, committed 2016-12-13
- Comitter:
- gr66
- Date:
- Tue Dec 13 15:12:58 2016 +0000
- Parent:
- 1:e77d69913c46
- Commit message:
- Lib
Changed in this revision
ds1338.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ds1338.cpp Wed Mar 04 13:09:54 2015 +0000 +++ b/ds1338.cpp Tue Dec 13 15:12:58 2016 +0000 @@ -7,7 +7,7 @@ * @param scl : scl i2c pin (PinName) */ DS1338::DS1338(PinName sda, PinName scl): _i2c(sda, scl) { - _i2c.frequency(400000); + _i2c.frequency(100000); buffer[0]=0x07; _i2c.write(DS1338_ADR,buffer,1,true); _i2c.read(DS1338_ADR,buffer,1);