-
Notifications
You must be signed in to change notification settings - Fork 450
Open
Description
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]
Metadata
Metadata
Assignees
Labels
No labels