New section for code bits?

Do you have a question on how to do something.
Ask in here.
Post Reply
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

New section for code bits?

Post by cosmith71 »

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.
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
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: New section for code bits?

Post by lnevo »

I have been thinking about this for a while. This is exactly what the wiki should be used for.

That's why I asked if someone could make a nice outline for the different topics we could put code snippets in there and have them organized nicely.

http://forum.reefangel.com/wiki
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: New section for code bits?

Post by rimai »

I like it :)
Yes, you can use the wiki: http://forum.reefangel.com/wiki
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: New section for code bits?

Post by lnevo »

I'm not a big wiki user, but if someone wants to make the sections, etc it would be pretty straight forward to filling in the snippets. I know there's like 5 ways to do ATO :) and 100 ways to do Feeding Modes, etc. :) I just need a structure to follow :)
Post Reply