energia / msp430-lg-core

15 stars 12 forks source link

Updated I²C library — Feed-back + suggestion #97

Closed rei-vilo closed 5 years ago

rei-vilo commented 5 years ago

I've tested the updated I²C library on an MSP430FR4133 connected to an INA226 sensor. Everything when fine.

I haven't tested the library as I²C slave yet.

A nice addition would be to allow to choose between the different speeds or modes (links to www.i2c-bus.org website).

StefanSch commented 5 years ago

Hi, just pushed a version to the wire_update branch. If you would like to give it a try. Note: it uses the function prototypes from Arduino with e.g. Wire.setClock(400000); // set 400kb/s

~ Stefan

rei-vilo commented 5 years ago

Thanks, I'll give a try and let you know!

StefanSch commented 5 years ago

added in wire_update branchand merged. Note: MSP430 only supports speed up to 400k