Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mcauser committed Jan 7, 2024
1 parent a487073 commit eb11153
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ hdc.reset()

# look for the HDC1080 sensor on the I2C bus
hdc.check()
# returns True if the device was found
# returns True if the device was found, otherwise raises an OSError

hdc.battery_status()
# returns 0 if Vcc > 2.8V
Expand All @@ -95,6 +95,14 @@ hdc.device_id()
# don't ask me why it's 1050 and not 1080 - that's just how it is in the datasheet
```

For more detailed examples, see [examples](/examples).

If you mip installed them above, you can run them like so:

```python
import hdc1080.examples.basic
```

## Parts

* [HDC1080 module](https://s.click.aliexpress.com/e/_DBqFmVn)
Expand Down

0 comments on commit eb11153

Please sign in to comment.