Skip to content

[NXT - help wanted]: Implement I2C module #2432

@laurensvalk

Description

@laurensvalk

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

No one assigned

    Labels

    help wantedExtra attention is neededplatform: NXTIssues related to LEGO MINDSTORMS NXTsoftware: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)topic: i2cIssues related to I2Ctopic: sensorsIssues involving sensors

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions