Skip to content

Rise error when I2C is not prepared #9

@Benik3

Description

@Benik3

Hello.

I spend a lot of time now finding why I don't get any data from my sensor (BMP180) and then I found that I forgot to call init function with I2c.begin(). :D
Anyway it took me so long because all write and read functions returned 0 like OK.
Wouldnt be better to make, that if I2C is not initialized, the functions will end automatically with error?

P.S. nice to see that this library is still maintained. It's in my opinion much better then Wire library for Atmega, where I had some weird lock-ups and also work with this is much easier and clear in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions