Temperature Sensor Refactor
Posted: Sun Jan 13, 2013 6:47 pm
I've done some work to refactor and document the temperature sensor code. The changes are available in:
GitHub: Pull Request : bondolo : Cleanup of DS18B20 Temperature Sensor Handling
I would appreciate any review comments or suggestions. It's smaller than the original code (That's the most important part, right?
) I was tempted to just import one of several DS18B20 libraries that exist for Arduino as it appears there are some subtleties and DS bugs that we might want to avoid.
Assuming this goes well, I will likely keep marching on with refactoring the rest of the temperature handling code within ReefAngel to use only Celsius units internally and have Fahrenheit units only as a display preference. To see units associated with a variable vary at runtime makes my skin crawl!
Mike
GitHub: Pull Request : bondolo : Cleanup of DS18B20 Temperature Sensor Handling
I would appreciate any review comments or suggestions. It's smaller than the original code (That's the most important part, right?
Assuming this goes well, I will likely keep marching on with refactoring the rest of the temperature handling code within ReefAngel to use only Celsius units internally and have Fahrenheit units only as a display preference. To see units associated with a variable vary at runtime makes my skin crawl!
Mike