-
Notifications
You must be signed in to change notification settings - Fork 15
Asynchronous conversion? #11
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
Comments
hiya i think it would be best to add two new functions - one for |
Cool!
Thanks
--Louis
Louis Bertrand, P.Eng.
Professor, School of Science and Engineering Technology
Durham College, Oshawa ON Canada
From: ladyada <[email protected]>
Sent: July 1, 2019 9:56 PM
To: adafruit/Adafruit_CircuitPython_DS18X20 <[email protected]>
Cc: Louis Bertrand <[email protected]>; Author <[email protected]>
Subject: Re: [adafruit/Adafruit_CircuitPython_DS18X20] Asynchronous conversion? (#11)
hiya i think it would be best to add two new functions - one for start_temperature_read and one for read_temperature that are functions - leave the temperature property as is, and advanced folks can use the 2 functions
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#11?email_source=notifications&email_token=ACRQSCXU7HIZY5GLC7WSYBLP5KYU3A5CNFSM4H4J4XF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY72IXI#issuecomment-507487325>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACRQSCUBQXNRCCHXT227OHTP5KYU3ANCNFSM4H4J4XFQ>.
…________________________________
This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.
|
Hi again,
I made the changes and tested with a pair of DS18B20s on a Trinket M0. I’m also going to test on a ItsyBitsy M4 express and with the newer (cheaper but 3V3 only) functional equivalent MAX31820.
I cloned the master repo to my local filesystem and made a branch, but now I’m stuck. I cannot publish the branch or generate a pull request most likely because I don’t have permission on the repo. Any suggestions?
Thanks
--Louis
Louis Bertrand, P.Eng.
Professor, School of Science and Engineering Technology
Durham College, Oshawa ON Canada
From: ladyada <[email protected]>
Sent: July 1, 2019 9:56 PM
To: adafruit/Adafruit_CircuitPython_DS18X20 <[email protected]>
Cc: Louis Bertrand <[email protected]>; Author <[email protected]>
Subject: Re: [adafruit/Adafruit_CircuitPython_DS18X20] Asynchronous conversion? (#11)
hiya i think it would be best to add two new functions - one for start_temperature_read and one for read_temperature that are functions - leave the temperature property as is, and advanced folks can use the 2 functions
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#11?email_source=notifications&email_token=ACRQSCXU7HIZY5GLC7WSYBLP5KYU3A5CNFSM4H4J4XF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY72IXI#issuecomment-507487325>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACRQSCUBQXNRCCHXT227OHTP5KYU3ANCNFSM4H4J4XFQ>.
…________________________________
This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.
|
hiya you should commit your changes to your fork, then make a PR |
Fixed by #12. Thanks @LBertrandDC ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The DS18x20 temperature conversion is quite slow, up to 750ms for 12 bit resolution and the application is unresponsive until the conversion is complete. My enhancement request is for an asynchronous conversion, much like the Arduino DallasTemperature library by Miles Burton et al.
It works something like this (I'm using the RBD::Timer library for timers to avoid delay() ):
I would like to help implement this but I'm quite new at CircuitPython, Git, GitHub and all that. Before starting, I would like to better define an API addition that doesn't break previous code while keeping with the learner friendly mandate of CircuitPython: keep the temperature property and add a method to kick off the conversion.
Perhaps something like this:
Thoughts? Where's the best place to discuss this? (I'm not on Discord but I can PM you my work email.)
The text was updated successfully, but these errors were encountered: