Skip to content

i2c.init() doesn't change the pins #112

@microbit-carlos

Description

@microbit-carlos

int microbit_hal_i2c_init(int scl, int sda, int freq) {
// TODO set pins
int ret = uBit.i2c.setFrequency(freq);
if (ret != DEVICE_OK) {
return ret;;
}
return 0;
}

@dpgeorge if this is something that needs implementing in CODAL let me know, or feel free to open an issue in https://github.com/lancaster-university/codal-microbit-v2/issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions