Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C Slave mode #496

Open
voscovvo opened this issue Apr 2, 2024 · 0 comments
Open

I2C Slave mode #496

voscovvo opened this issue Apr 2, 2024 · 0 comments

Comments

@voscovvo
Copy link

voscovvo commented Apr 2, 2024

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant