Skip to content

Commit 33461c1

Browse files
authored
Update README.md
1 parent 91df662 commit 33461c1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,10 +1161,6 @@ This operation is integrated in setI2C() method, so there is no need to call it
11611161

11621162
Stops i2c operation and resets i2c pins 03 (SDA) and 05 (SCL) to GPIO input pins.
11631163

1164-
### setTransferSpeed(baud)
1165-
1166-
Sets the i2c clock frequency by converting the **baud** argument to the equivalent i2c clock divider value.
1167-
11681164
### setClockFreq(div)
11691165

11701166
Sets the i2c clock speed based on the **div** divisor value. Check the various *div* values below and the possible clock speeds that will be generated.
@@ -1174,6 +1170,13 @@ div 626 => 2.504us => 399.3610 kHz
11741170
div 150 => 60ns => 1.666 MHz (default at reset)
11751171
div 148 => 59ns => 1.689 MHz
11761172
```
1173+
1174+
### setTransferSpeed(baud)
1175+
1176+
Directly set the the i2c clock speed using a baud argument instead of using a div value. Either use the setClockFreq above or this method.
1177+
1178+
Sets the i2c clock frequency by converting the **baud** argument to the equivalent i2c clock divider value.
1179+
11771180
### selectSlave(addr)
11781181

11791182
Sets the i2c address of the slave device.

0 commit comments

Comments
 (0)