Skip to content

Commit fad6222

Browse files
authored
Merge pull request #348 from sparkfun/reduceDefaultI2CClock
Reduce default I2C clock
2 parents c34a7b9 + e6b797a commit fad6222

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/Wire/src/Wire.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ arduino::MbedI2C::MbedI2C(int sda, int scl) : _sda(sda), _scl(scl), usedTxBuffer
1010
void arduino::MbedI2C::begin() {
1111
if(!master){
1212
master = new mbed::I2C((PinName)_sda, (PinName)_scl);
13+
setClock(100000); //Default to 100kHz
1314
}
1415
}
1516

0 commit comments

Comments
 (0)