Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    You can use Wire.write(data, len) to send all 4 bytes at once. Commented Feb 13, 2018 at 13:05
  • @LookAlterno I never used it, so I didn't know it existed ;) in any case the OP was using the single byte version, so I used it too... Thank you for the info, I'll update the answer with this Commented Feb 13, 2018 at 15:17
  • 1
    It was not a criticism, just a collaboration. Commented Feb 13, 2018 at 15:50
  • If the internal pullups on the arduino side are disabled, there is no reason to worry about the voltage mismatch correct? Arduino only pulls the SDA line low, letting the pi pull it up to rail voltage at 3.3V. Commented Feb 13, 2018 at 16:18
  • I must have been really tired last night. Didn't put it together in my head that the interrupt was being triggered again before the remaining data was sent. I have not tired any of this yet, but will mark it correct as it seems right. Will edit it with working code once I am done. Commented Feb 13, 2018 at 16:20