- Notifications
You must be signed in to change notification settings - Fork1.1k
Closed
Description
Im trying to send a buffer over a I2C communication.
this is the code i used :
Wire.beginTransmission(SCREEN_WRITE_addr); Wire.write(addr); unsigned char* ptr = data; for (int i = 0 ; i < len ; i++) { Wire.write(*ptr); if (DEBUG) { Serial.print("WE WROTE :"); Serial.println(*ptr,HEX); } ptr++; } Wire.endTransmission(true);some how only the last byte has been sent ... why ?