winnermicro / micropython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
https://micropython.org
MIT License
9 stars 2 forks source link

I2C: Fix the implementation #9

Closed robert-hh1 closed 4 years ago

robert-hh1 commented 4 years ago

machine_i2c.c: Fix for hardware I2C

The fix is for the hardware I2C

mphalport.h: Fix for soft I2C

Enable the Soft I2C, which may use all GIO pins. Tested with SI7021, ADS1115 and sh1106

t.b.d.: Add the primitive functions start, stop, write, readinto to the hardware I2C variant. The basic code is present and has only to be slightly aligned.