Skip to content

Add multi sensor example #23

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

Merged
merged 3 commits into from
Sep 21, 2021
Merged

Conversation

caternuson
Copy link
Contributor

Adds an example that's a little more real world than simpletest example. Demonstrates how to setup multiple sensors with known ROM codes, which can be determined using scan.

Adafruit CircuitPython 7.0.0 on 2021-09-20; Adafruit Metro M4 Express with samd51j19
>>> import ds18x20_multi
Temperature 1 = 20.9375
Temperature 2 = 20.8125
Temperature 3 = 21.75
--------------------
Temperature 1 = 21.0
Temperature 2 = 20.875
Temperature 3 = 21.75
--------------------
Temperature 1 = 21.0
Temperature 2 = 20.875
Temperature 3 = 21.75
--------------------

@ladyada
Copy link
Member

ladyada commented Sep 21, 2021

wanna add a commented out part that scans for currently seen ROM codes?

@caternuson caternuson merged commit 64b85cd into adafruit:main Sep 21, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 25, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_DS18X20 to 1.3.7 from 1.3.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_DS18X20#23 from caternuson/new_example
  > Moved default branch to main
  > Moved CI to Python 3.7
  > Added help text and problem matcher
  > Added pull request template

Updating https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3741 to 1.1.2 from 1.1.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_IS31FL3741#6 from adafruit/philb-clip-fix

Updating https://github.com/adafruit/Adafruit_CircuitPython_BusDevice to 5.1.0 from 5.0.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_BusDevice#72 from michthom/michthom-patch-1
  > Merge pull request adafruit/Adafruit_CircuitPython_BusDevice#68 from 2bndy5/note-about-builtin-pkg
  > Moved default branch to main
  > Moved CI to Python 3.7
  > Added help text and problem matcher
  > Added pull request template
  > "Increase duplicate code check threshold "
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

Successfully merging this pull request may close these issues.

2 participants