Skip to content

Adafruit_CircuitPython_SHTC3/examples/shtc3_simpletest.py #16

@Napilnic

Description

@Napilnic

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions