Skip to content

I2C Slave mode #496

Description

@voscovvo

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions