micropython-sht30 icon indicating copy to clipboard operation
micropython-sht30 copied to clipboard

Remove deprecated commands & allow passing I2C bus

Open ederjc opened this issue 4 months ago • 0 comments

Hi @rsc1975, thanks for providing this module, great help for my project!

Had to do minor changes to get it running on current MicroPython versions:

  • remove all i2c.start() calls
  • remove all i2c.stop() calls

Apart from this, I have multiple I2C devices on one bus in my application, so I need to pass the I2C bus instead of the pins to the constructor. I added this option while keeping the option to pass pins.

This PR should also fix https://github.com/rsc1975/micropython-sht30/issues/3. I suggest to merge https://github.com/rsc1975/micropython-sht30/pull/1 before this one.

Best regards Julian

ederjc avatar Oct 23 '24 18:10 ederjc