MySensorsArduinoExamples
MySensorsArduinoExamples copied to clipboard
New Dallas temperature sensor example
After some useful feedback and co-authoring on the forum (Thanks Scalz!), the sketch is now even better.
- Conforms better to MySensors coding standards.
- Added option to choose sensor precision (also useful starting point for other sensors). Thanks Awi!
- Clearer option to choose between Celsius and Fahrenheit.
Old features remain:
- non-blocking
- option to use sleep to preserve battery
- Now compatible with latest OneWire and Dallas libraries
- Lots more explanatory/educational comments, and cleaner code than before.
Forum thread: https://forum.mysensors.org/topic/6395/new-non-blocking-temperature-sensor-code/7
Also note that you don't need to close/open new PR. You can amend the current one by pushing to the same branch. That way we keep all the comments and history related to the update in one place.
If the DallasTemperature library is no longer needed you can remove it as well.
OK, I'll try adding it to the current request.
So.. much.. learning!
Do I need to set this back to "please review" somehow?
Could we perhaps make a new example with your changes? I.e. DallasTemperatureSensorNoneBlocking.ino (or shorter if you can come up with a nifty name ;) )
I'd like to keep the current one as simple as possible.