Skip to content

I2C not working and documentation has dead link #498

@AshrafIbrahim03

Description

@AshrafIbrahim03

This is a two parter:

I've been trying to initialize an I2C led for my microbit to no avail. I keep getting an O90 error. It's the same story of trying to follow documentation and not getting it to work. My microbit is set up so that it uses the default pins for i2c. Here's the code that I'm using to try to get it to work:

#include "MicroBit.h"
#include "MicroBitI2C.h"

MicroBit uBit;
MicroBitI2C i2c(I2C_SDA0,I2C_SCL0);

int main() {
    uBit.init();
}

I'm really not sure why it wouldn't work as I'm pretty sure this is what the documentation says, from what I've gathered. I should also mention that I've gotten the I2C led to work with Microsoft Makecode, so I know that it's connected properly.

Additionally, on line 50 of MicroBitI2C.cpp there's a dead link.

Thanks!

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