-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
help wantedExtra attention is neededExtra attention is neededplatform: NXTIssues related to LEGO MINDSTORMS NXTIssues related to LEGO MINDSTORMS NXTsoftware: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)Issues with Pybricks MicroPython firmware (or EV3 runtime)topic: i2cIssues related to I2CIssues related to I2Ctopic: sensorsIssues involving sensorsIssues involving sensors
Description
We don't have an I2C driver for NXT yet.
We would need a file called i2c_nxt.c that implements the equivalent functionality of i2c_ev3.c. Unlike the EV3, the NXT does not use a co-processor for I2C, so everything can just go into this one file.
Almost everything should already be here, which can be used as inspiration. By implementing it as above, we'd get non-blocking versions. Portions of this API can be copied rather than attempting to call this blocking API.
When this low-level driver is implemented, it can be tested with the pybricks.iodevices.I2CDevice class that is already enabled.
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededplatform: NXTIssues related to LEGO MINDSTORMS NXTIssues related to LEGO MINDSTORMS NXTsoftware: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)Issues with Pybricks MicroPython firmware (or EV3 runtime)topic: i2cIssues related to I2CIssues related to I2Ctopic: sensorsIssues involving sensorsIssues involving sensors