Update August2_I2C_MasterDuino.ino

This commit is contained in:
Raghav 2021-08-02 18:14:20 -04:00 committed by GitHub
parent 3139fb14b2
commit 7e1c2ed46a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ void setup() {
}
void loop() {
Wire.requestFrom(8, 27); // request 100 bytes from slave device #8
Wire.requestFrom(8, 27); // request 27 bytes from slave device #8
String data = "";
while (Wire.available()) { // slave may send less than requested
char c = Wire.read(); // receive a byte as character