最終更新:2018-06-19 (火) 17:28:05 (2100d)
Arduino/Wire
http://wiring.org.co/reference/libraries/Wire/index.html
There is a TWI (Two Wire Interface) port available on the Wiring board named Wire. The port Wire is available on the Wiring digital pins 0(SCL) and 1(SDA).
日本語
- このライブラリはI2C(TWI)デバイスとの通信を可能にします。
- http://www.musashinodenpa.com/arduino/ref/index.php?f=1&pos=341
メソッド
- Wire.begin
- Wire.begin() initializes the bitrate to 100kHz.
- Wire.setClock
- Wire.beginTransmission?
- Wire.write?
- Wire.endTransmission
- Wire.requestFrom
- Wire.available?
クロック
- Wire.begin - 初期値は100kHz
- Wire.setClock - 値は31kHz~400kHz