Skip to content

add delay to I2Cread for temperature reading #34

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 1 commit into from
Jun 23, 2019
Merged

add delay to I2Cread for temperature reading #34

merged 1 commit into from
Jun 23, 2019

Conversation

jerryneedell
Copy link
Contributor

@jerryneedell jerryneedell commented Jun 23, 2019

temperature reading had been working in the past, but now temperature readings were not being returned correctly. Not sure what changed but increasing the delay for the read fixed the problem.
This delay was already used for the moisture reading.

fixes #33

Is this possibly due to recent "speedups" in CP in general? Will other seesaw applications run into similar issues? Is the default delay of .001 sufficient?

tested on feather_m4_express and pyportal

@jerryneedell jerryneedell requested review from caternuson and a team June 23, 2019 09:36
@ladyada ladyada merged commit f1171f9 into adafruit:master Jun 23, 2019
@ladyada
Copy link
Member

ladyada commented Jun 23, 2019

yep could definitely be related to speedups in the core + M4 being so fast. thanks for catching!

@ladyada
Copy link
Member

ladyada commented Jun 23, 2019

@jerryneedell - wanna bump?

@jerryneedell jerryneedell deleted the jerryn_soil branch June 23, 2019 19:34
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jun 24, 2019
Updating https://github.com/adafruit/Adafruit_CircuitPython_Seesaw to 1.4.2 from 1.4.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_seesaw#34 from jerryneedell/jerryn_soil

Updating https://github.com/adafruit/Adafruit_CircuitPython_ to 1.0.3 from 1.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_#8 from dastels/master
  > Merge pull request adafruit/Adafruit_CircuitPython_#7 from dastels/master
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.

Invalid soil temperature readings
2 participants