This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
projects:a4sim:troubleshooting [2020/05/05 18:00] dwheele |
projects:a4sim:troubleshooting [2020/05/07 05:13] (current) dwheele [Solution] |
||
|---|---|---|---|
| Line 32: | Line 32: | ||
| These resistors are soldered to the Arduino Mega 2560 Channel 46. | These resistors are soldered to the Arduino Mega 2560 Channel 46. | ||
| + | |||
| + | **Additional Solution**: In Arduino code, the I2C handler is looking for a fixed number of bytes on the inbound message. If it doesn' | ||
| + | |||
| + | With code like this: | ||
| + | |||
| + | <code c> | ||
| + | // Read off all of the bytes | ||
| + | for (i = 0; i < numBytes; i++) { | ||
| + | byteBuffer[0] = Wire.read(); | ||
| + | } | ||
| + | </ | ||
| ===== Arduino Mega 2560 Stopped working ===== | ===== Arduino Mega 2560 Stopped working ===== | ||