Wire (メンバ関数版)
Wire (メンバ関数版)
読み込み
requestFrom()
size_type requestFrom(
uint8_t u8address,
size_type length,
bool b_send_stop = true)パラメータ
解説
コード例
int len = Wire.requestFrom(0x70, 6);
for (int i = 0; i < 6; i++) {
if (Wire.available()) {
au8data[i] = Wire.read();
Serial.print(buff[i], HEX);
}
}
// skip the rest (just in case)
// while (Wire.available()) Wire.read(); // normally, not necessary.書き出し
beginTransmission()
パラメータ
解説
write(value)
パラメータ
解説
write(*value, quantity)
パラメータ
解説
endTransmission()
パラメータ
解説
最終更新