9 Commits

Author SHA1 Message Date
UT2UH
2fe52b570e min max macros and Wire fixes 2020-11-11 13:29:58 +02:00
Mikael Johansson
78f7bb18c5 Flush buffers on every I2C transaction, in case the user hasn't consumed all bytes
F
2020-10-11 15:24:14 +02:00
Mikael Johansson
763c23d13c Refacted TwoWire::begin() to reduce duplicated code with TwoWire::setClock() 2020-10-11 14:59:18 +02:00
Mikael Johansson
7c7ec509ac Return number of received bytes from TwoWire::requestFrom(), like Arduino documentation specifies
Nl
2020-10-11 12:12:37 +02:00
Mikael Johansson
9b077cb470 Set default I2C frequency to 400kHz, same as Arduino boards use 2020-10-10 16:48:49 +02:00
Mikael Johansson
359f7a89f2 Fixed return value bug in TwoWire::write 2020-10-10 16:48:14 +02:00
Bigbits
6d6add4a05 fix a bug 2019-05-08 20:21:13 +08:00
Bigbits
4ff6c1f4e5 Add i2c examples
Signed-off-by: Bigbits <btx000@qq.com>
2019-03-28 20:09:42 +08:00
Bigbits
04786cac13 Add Wire
Signed-off-by: Bigbits <btx000@qq.com>
2019-03-28 18:47:39 +08:00