You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maix Bit is in I2C Slave mode.
It needs to receive 20 bytes from master in one package.
in I2C API there's callback function on-receive:
def i2c_on_receive(data):
'data' - here is one byte sent by master. I guess the first one in package.
Expected behavior
How to collect all the bytes sent by master as one bytearray, for example?
There should be some access to current I2C buffer to read all available bytes as it is done in Wire library for Arduino.
Or, maybe there's some other solution?
Please complete the following information
IDE version: [e.g. 0.2.5]
Firmware version: MicroPython v0.6.2-73-g1a4f278a5 on 2022-03-22; Sipeed_M1 with kendryte-k210]
Board: [Maix Bit]
OS: [e.g. Windows]
The text was updated successfully, but these errors were encountered:
Maix Bit is in I2C Slave mode.
It needs to receive 20 bytes from master in one package.
in I2C API there's callback function on-receive:
def i2c_on_receive(data):
'data' - here is one byte sent by master. I guess the first one in package.
Expected behavior
How to collect all the bytes sent by master as one bytearray, for example?
There should be some access to current I2C buffer to read all available bytes as it is done in Wire library for Arduino.
Or, maybe there's some other solution?
Please complete the following information
The text was updated successfully, but these errors were encountered: