Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adafruit_CircuitPython_SHTC3/examples/shtc3_simpletest.py #16

Open
Napilnic opened this issue Jan 9, 2022 · 0 comments
Open

Adafruit_CircuitPython_SHTC3/examples/shtc3_simpletest.py #16

Napilnic opened this issue Jan 9, 2022 · 0 comments

Comments

@Napilnic
Copy link

Napilnic commented Jan 9, 2022

image

Hi.

Try to add sht.reset().
On my Jetson following code works without power reset.

import time
import board
import adafruit_shtc3

i2c = board.I2C()  # uses board.SCL and board.SDA
sht = adafruit_shtc3.SHTC3(i2c)

run = True

while run:
    try:
        temperature, relative_humidity = sht.measurements
        print("Temperature: %0.1f C" % temperature)
        print("Humidity: %0.1f %%" % relative_humidity)
        print("")
        time.sleep(1)
    except KeyboardInterrupt:
        run = False

sht.reset()

print('Service stopped')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant