Search found 2 matches

by TroCeAtO
Wed May 12, 2021 2:09 pm
Forum: Other Boards
Topic: Micropython Unix port on Raspberry Pi - I2C/SPI?
Replies: 3
Views: 4773

How can the I2C call readfrom_mem_into be replicated with SMBus methods in micropython?

For a micropython application on a Raspberry Pi I want to read a sensor via I2C. As the OP already mentioned, I2C does not work with Micropython running on a Raspberry Pi (4B), but the python port mentioned above seems to help. So I'm trying to rebuild the I2C method I2C.readfrom_mem_into (https://d...
by TroCeAtO
Wed May 12, 2021 2:01 pm
Forum: Other Boards
Topic: [RPI 4B 8GB] How can the I2C call readfrom_mem_into be replicated with SMBus methods in micropython?
Replies: 2
Views: 3040

[RPI 4B 8GB] How can the I2C call readfrom_mem_into be replicated with SMBus methods in micropython?

For a micropython application on a Raspberry Pi I want to read a sensor, but in the linux port of micropython the I2C library is not available. The SMBus library is available as a port on Github ( https://github.com/dlech/micropython-ev3dev/blob/ev3dev-stetch/src/uev3dev/i2c.py ), so I'm trying to r...