Unverified Commit c4046602 authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

Allow changing I2C clock speed while running (#459)

Fixes #458
parent baf925fe
Subproject commit e63a5f78e4901d5bd43ed7a5cb1e3d6eec915271
Subproject commit a6498d6228347ff8337a91b9c1ce934350214dd6
Subproject commit a6f08ea8b7eac39886812d7b552895a10ef18208
Subproject commit be7395a597c748eda75ea40821637a63e596f09d
......@@ -83,6 +83,9 @@ bool TwoWire::setSCL(pin_size_t pin) {
void TwoWire::setClock(uint32_t hz) {
_clkHz = hz;
if (_running) {
i2c_set_baudrate(_i2c, hz);
}
}
// Master mode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment