Re: Switch sensor vs. switch PIC pin
You could have your Main loop check the status of a switch, not in your sensor loop, if closed it jumps to a sub routine to check one and if open it goes to a different sub routine. the DS18B20 temp sensors never get switched, they are always on, so no noise problem.
In the sub routines use your owout / owin and jumps to display refresh routine with pertinent data.
You could even have the main loop read both sensors every loop and have your subs just display the variables your data is stored in.
Last edited by Archangel; - 6th April 2011 at 06:04.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks