tedyapo / arduino-MLX90393

Arduino library for MLX90393 magnetometer sensor
MIT License
49 stars 26 forks source link

_i2cPort->begin(); #37

Closed nikkadim closed 6 years ago

nikkadim commented 6 years ago

Should _i2cPort->begin(); been added to MLX90393::begin?

tedyapo commented 6 years ago

No, it cannot be added in MLD90393::begin(). You need to call Wire.begin() before calling MLX90393::begin().

This is to allow you to use alternate pins for SDA and SCL on some platforms, which must be passed in the Wire.begin() call.