pimoroni / sgp30-python

Python library for the SGP30 air quality sensor
https://shop.pimoroni.com/products/sgp30-air-quality-sensor-breakout
MIT License
38 stars 18 forks source link

Close i2c for #5 #6

Closed Gadgetoid closed 4 years ago

Gadgetoid commented 4 years ago

Closes the i2c on __exit__ to avoid leaving multiple file handles open when the library is re-used in a single, persistent Python thread.