Page 1 of 1
v0.8.5.19
Posted: Wed Oct 19, 2011 12:05 pm
by binder
Just released an update to the libraries.
Here's some of the highlights:
- Moved PWM Expansion commands to PWM class
- Added RF & Salinity classes
- pH averaging
- Added AI class
- Updated the default Features - Simple Menu & Wifi enabled by default
- Added in new wifi commands
Get it where you normally get it.....wifi update utility or download on my github account (
https://github.com/curtbinder/ReefAngel ... /v0.8.5.19)
curt
Re: v0.8.5.19
Posted: Tue Nov 08, 2011 11:55 pm
by alexwbush
thanks for the update. I didn't realize I needed it forthe custom menu, but apparently my library was outdated. I am just starting with it, but when I upgaded the delay function no longer worked.
Code: Select all
DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
any ideas? Also... RA+ with built in wifi... jealous
Re: v0.8.5.19
Posted: Wed Nov 09, 2011 12:30 am
by alexwbush
also, for the next library push... can you add the moonphase calculation to ReefAngel_Globals.cpp?
Code: Select all
byte MoonPhase()
{
int m,d,y;
int yy,mm;
long K1,K2,K3,J,V;
byte PWMvalue;
m=month();
d=day();
y=year();
yy=y-((12-m)/10);
mm=m+9;
if (mm>=12) mm-=12;
K1=365.25*(yy+4712);
K2=30.6*mm+.5;
K3=int(int((yy/100)+49)*.75)-38;
J=K1+K2+d+59-K3;
V=(J-2451550.1)/0.29530588853;
V-=int(V/100)*100;
V=abs(V-50);
PWMvalue=4*abs(50-V); // 5.12=100% 4=~80%
//pinMode(lowATOPin,OUTPUT);
return (PWMvalue*100)/255;
}
Re: v0.8.5.19
Posted: Wed Nov 09, 2011 4:55 am
by wolfador
alexwbush wrote:also, for the next library push... can you add the moonphase calculation to ReefAngel_Globals.cpp?
MoonPhase() is already a global function
Re: v0.8.5.19
Posted: Wed Nov 09, 2011 5:08 am
by wolfador
alexwbush wrote:thanks for the update. I didn't realize I needed it forthe custom menu, but apparently my library was outdated. I am just starting with it, but when I upgaded the delay function no longer worked.
Code: Select all
DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
any ideas? Also... RA+ with built in wifi... jealous
I think it should be used as:
Code: Select all
ReefAngel.Relay.DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
Re: v0.8.5.19
Posted: Wed Nov 09, 2011 5:46 am
by binder
yes. i moved DelayedOn to be part of the relay class. it makes more sense that way.
curt
Re: v0.8.5.19
Posted: Wed Nov 09, 2011 6:30 pm
by alexwbush
wolfador wrote:alexwbush wrote:also, for the next library push... can you add the moonphase calculation to ReefAngel_Globals.cpp?
MoonPhase() is already a global function
moonphase wouldn't work fro me until I pasted the code into the ReefAngel_Globals.cpp. Well I take that back... the file wouldn't compile until it did. I'm not entirely sure it works yet. I haven't caught it in the middle of the night yet and it's not tracked on any of the charts.
Re: v0.8.5.19
Posted: Wed Nov 09, 2011 6:31 pm
by alexwbush
wolfador wrote:I think it should be used as:
Code: Select all
ReefAngel.Relay.DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
excellent, thanks!