Difference: TheI2CBusAndTheSHT30TemperatureAndHumiditySensor (7 vs. 8)

Revision 82020-06-08 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

Exercise 5: The I2C bus and the SHT30 Temperature and Humidity Sensor

Introduction

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.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback