New section for code bits?
Posted: Thu Jun 13, 2013 7:27 am
There is a wealth of knowledge here, but it's scattered all over.
How about a new section, where each post is a single piece of code for solving a problem? No discussion (can be put somewhere else). That way things would be easy to search.
Something like this.
Any thoughts?
--Colin
How about a new section, where each post is a single piece of code for solving a problem? No discussion (can be put somewhere else). That way things would be easy to search.
Something like this.
Turn Lights Down on Overheat
This will dim your LED's when the temperature hits 83 and return them to normal when the temperature drops below 80. Put it in the loop section.
Code: Select all
// Lights down on overheat static boolean overheat=false; if (ReefAngel.Params.Temp[T1_PROBE] >= 830) overheat=true; if (ReefAngel.Params.Temp[T1_PROBE] <= 800) overheat=false; if (overheat) { ReefAngel.PWM.SetActinic(15); ReefAngel.PWM.SetDaylight(15); }
Any thoughts?
--Colin