-
Notifications
You must be signed in to change notification settings - Fork 0
Home
pressla edited this page Jun 27, 2020
·
2 revisions
ok here we go in the wiki pages
`void receiveEvent(int howMany) { //Serial.println(howMany); Serial.print("BUS DATA:"); Serial.println(howMany);
byte c[32]; String rec; int chck = 0; int i= 0; while (0 < Wire.available()) { // loop through all but the last c[i] = Wire.read(); // receive byte as a character if (i!=0) rec += ","; rec += c[i];
i++;2
}`