# I2C communication buffer protocol

**URL:** <https://forums.openmv.io/t/i2c-communication-buffer-protocol/5567>\
**Category:** OpenMV Boards\
**Created:** [March 17, 2021, 3:34pm UTC](https://forums.openmv.io/t/i2c-communication-buffer-protocol/5567 "2021-03-17T15:34:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inter\_fan](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Inter\_fan](https://forums.openmv.io/u/Inter_fan)\
**Post date:** [March 17, 2021, 3:34pm UTC](https://forums.openmv.io/t/i2c-communication-buffer-protocol/5567/1 "2021-03-17T15:34:24Z")

</div>

For a project we are working on an I2C communication, we can send over 1 number/value or 1 byte, but trying to send over a multiple bytes/values Open MV wont let us. The error message Open MV gives us, is saying that Open MV needs a buffer protocol. What are we doing wrong, and how is it supposed to work?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [March 17, 2021, 3:59pm UTC](https://forums.openmv.io/t/i2c-communication-buffer-protocol/5567/2 "2021-03-17T15:59:29Z")

</div>

Please post the code that has an error.

But, it sounds like you are not following the API for the I2C comma. If you are using a method that needs a buffer object then you need to wrap the value you want to send in a bytes() object.
