Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Exercise 5: The I2C bus and the SHT30 Temperature and Humidity SensorIntroduction | ||||||||
Line: 31 to 31 | ||||||||
git clone https://github.com/rsc1975/micropython-sht30.git | ||||||||
Changed: | ||||||||
< < | In order not to interfere with the SHT30 driver already installed in the MicroPython binary please rename sht30.py to mysht30.py. Then upload the driver to the ESP32 /lib directory: | |||||||
> > | Upload the driver to the ESP32 /lib directory: | |||||||
Changed: | ||||||||
< < | ampy put mysht30.py /lib/mysht30.py | |||||||
> > | ampy put sht30.py /lib/sht30.py | |||||||
Now you can import the class with: | ||||||||
Changed: | ||||||||
< < | from mysht30 import SHT30 | |||||||
> > | from sht30 import SHT30 | |||||||
Once this is done you can try the examples from the repository README.md. |