Pokes at getting the display working.
Cleaned the code, can read temperatures successfully.
Comparator interrupt seems to work. I guess that a button bounce causes a double trigger of the interrupt. Are these interrupt needed after all? Power save interrupted by a timer plus key handling inside loop(). Or something like that.
added nilrtos code
ditched the analog comparator interrupt
Added a protothread-based implementation for key handler.
Random pokes...
Refactored key handler. Not working properly, though.
Added a leOS2-based key-handling application with sleeping idle and stuff. Seems the best solution so far, at least compared to pt and nilrtos. I'm on the same wavelength with this scheduler system.
Took into user Leonardo's latest changes.
Merge branch 'master' of https://github.com/kontza/temperature_control