Closed
Description
There has been a fix for the SHTC3 not coping with a soft reset: adafruit/Adafruit_CircuitPython_SHTC3#3. But this problem persists on the ESP32-S2 (I'm using a FeatherS2). The code below works fine on a Feather M0 Express.
My code:
import busio
import time
import adafruit_shtc3
i2c = busio.I2C(board.SCL, board.SDA)
sht = adafruit_shtc3.SHTC3(i2c)
while True:
print(sht.temperature)
time.sleep(1)
Running on this Feather:
>>> print(os.uname())
(sysname='esp32s2', nodename='esp32s2', release='6.1.0', version='6.1.0-beta.2
on 2020-12-03', machine='FeatherS2 with ESP32S2')
Outputs this:
25.48
25.52
25.57
I press ctrl+s and it then outputs:
Code done running. Waiting for reload.
soft reboot
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
File "code.py", line 8, in <module>
File "adafruit_shtc3.py", line 89, in __init__
ValueError: No I2C device at address: 70