Page 1 of 1

Brand new

Posted: Fri Dec 12, 2014 2:25 pm
by Lionfan
I'm brand new to reef angel. Used the wizard, and set up the basics. But that's not why I got a Reef Angel.I want vto be able to control everything.. Idk where to begin on the code. I don't even know enough to ask questions..

Re: Brand new

Posted: Fri Dec 12, 2014 2:48 pm
by lnevo
You can look at my code for some examples of all the things you can do. How much experience with C do you have? Let us know what you'd like to do next so we can point you in the right direction. You can view the API at http://www.easte.net/ra/html

Re: Brand new

Posted: Fri Dec 12, 2014 3:43 pm
by Lionfan
I have no experience with C. Or any programming. But I will try to learn as much as I can

Re: Brand new

Posted: Sat Dec 13, 2014 4:37 am
by cosmith71
Check this out. It's a tutorial I wrote on basic code structure. It's a good place to get familiar with basics.

http://forum.reefangel.com/viewtopic.php?f=14&t=3353

Next, decide what you want to do. Easier said than done. :mrgreen: Like Lee said, go to the "My PDE/INO" board and check out what other folks have done. Don't worry if you don't understand it. If you see something you like we can help you adapt it.

--Colin

Re: Brand new

Posted: Sat Dec 13, 2014 9:27 am
by Lionfan
Thanks for the link. Makes a little more sense. What id like to do is have a graph on the controller, and label the ports

Re: Brand new

Posted: Sat Dec 13, 2014 9:36 am
by cosmith71
Labeling the ports on the controller.

Add this to the setup() section:

Code: Select all

  // Define labels for 2014 LCD screen
  ReefAngel.CustomLabels[0]="Fan"; 
  ReefAngel.CustomLabels[1]="Heater"; 
  ReefAngel.CustomLabels[2]="Skimmer"; 
  ReefAngel.CustomLabels[3]="Return"; 
  ReefAngel.CustomLabels[4]="Swabbie"; 
  ReefAngel.CustomLabels[5]="Sump Light"; 
  ReefAngel.CustomLabels[6]="Canopy Fans"; 
  ReefAngel.CustomLabels[7]="Refugium Light";

  ReefAngel.CustomLabels[Box1_Port1Label] = "Alk Pump";
  ReefAngel.CustomLabels[Box1_Port2Label] = "Cal Pump";
  ReefAngel.CustomLabels[Box1_Port3Label] = "Top Off";
  ReefAngel.CustomLabels[Box1_Port4Label] = "";
  ReefAngel.CustomLabels[Box1_Port5Label] = "";
  ReefAngel.CustomLabels[Box1_Port6Label] = "";
  ReefAngel.CustomLabels[Box1_Port7Label] = "";
  ReefAngel.CustomLabels[Box1_Port8Label] = "";

  ReefAngel.CustomLabels[Box2_Port1Label] = "Virt Alk";
  ReefAngel.CustomLabels[Box2_Port2Label] = "Virt Cal";
  ReefAngel.CustomLabels[Box2_Port3Label] = "";
  ReefAngel.CustomLabels[Box2_Port4Label] = "";
  ReefAngel.CustomLabels[Box2_Port5Label] = "";
  ReefAngel.CustomLabels[Box2_Port6Label] = "";
  ReefAngel.CustomLabels[Box2_Port7Label] = "";
  ReefAngel.CustomLabels[Box2_Port8Label] = "";
The first set is the included relay box, and the second and third sections are for expansion relays. Just use what you need.

The old main screen had a graph, but the old main screen is terrible. Maybe someone can chime in on how to add one to the 2014 screens.

--Colin

Re: Brand new

Posted: Sat Dec 13, 2014 11:54 am
by Lionfan
Thanks a lot!