Skip to content

i2c unknown #809

Open
Open
@pmendoncaphysics

Description

@pmendoncaphysics

I'm new to microbit and I want to use it (v2) to read data from a sensor via i2c protocol.

I'm using the Microsoft MakeCode website to program the microbit.
Since I did not see any blocks to initialize and scan i2c connected sensors, I'm using micropython according to the documentation here

However, there are errors saying that the i2c is unkown and can not find function init(), as depicted in the image below:

image

What am I missing here?

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