mirror of
https://github.com/PotentiaRobotics/engine-software.git
synced 2025-04-09 23:00:21 -04:00
Update August2_I2C_MasterDuino.ino
This commit is contained in:
parent
3139fb14b2
commit
7e1c2ed46a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user