Version Library for Jebao??
Posted: Sat Feb 01, 2014 8:01 am
My current library version is 1.0.1
Do I need to update to 1.0.4 in order to run Jebao code like this?? If so how do I update the library?
if (hour()>=8 && hour()<12)
{
ReefAngel.PWM.SetDaylight( TidalSwellMode(50,true) ); // Lagoon at 40% +/- 20% on sync mode
ReefAngel.PWM.SetActinic( TidalSwellMode(50,false) ); // Lagoon at 40% +/- 20% on anti-sync mode
}
else if (hour()>=12 && hour()<15)
{
ReefAngel.PWM.SetDaylight( ShortPulseMode(0,40,200,true) ); // Short pulse at 40% with 200ms pulse on sync mode
ReefAngel.PWM.SetActinic( ShortPulseMode(0,40,200,false) ); // Short pulse at 40% with 200ms pulse on anti-sync mode
}
else if (hour()>=15 && hour()<21)
{
ReefAngel.PWM.SetDaylight( ReefCrestMode(50,20,true) ); // ReefCrest on 50% with +/-20% on sync mode
ReefAngel.PWM.SetActinic( ReefCrestMode(50,20,false) ); // ReefCrest on 50% with +/-20% on anti-sync mode
}
else if (hour()>=21 && hour()<23)
{
ReefAngel.PWM.SetDaylight( NutrientTransportMode(20,70,200,true) ); // NTM at 50% with 20% +/- on sync mode
ReefAngel.PWM.SetActinic( NutrientTransportMode(20,70,200,false) ); // NTM at 50% with 20% +/- on anti-sync mode
}
else
{
ReefAngel.PWM.SetDaylight( LongPulseMode(20,60,10,true) ); // Long pulse at 60% with 10s pulse on sync mode
ReefAngel.PWM.SetActinic( LongPulseMode(20,60,10,false) ); // Long pulse at 60% with 10s pulse on anti-sync mode
}
Do I need to update to 1.0.4 in order to run Jebao code like this?? If so how do I update the library?
if (hour()>=8 && hour()<12)
{
ReefAngel.PWM.SetDaylight( TidalSwellMode(50,true) ); // Lagoon at 40% +/- 20% on sync mode
ReefAngel.PWM.SetActinic( TidalSwellMode(50,false) ); // Lagoon at 40% +/- 20% on anti-sync mode
}
else if (hour()>=12 && hour()<15)
{
ReefAngel.PWM.SetDaylight( ShortPulseMode(0,40,200,true) ); // Short pulse at 40% with 200ms pulse on sync mode
ReefAngel.PWM.SetActinic( ShortPulseMode(0,40,200,false) ); // Short pulse at 40% with 200ms pulse on anti-sync mode
}
else if (hour()>=15 && hour()<21)
{
ReefAngel.PWM.SetDaylight( ReefCrestMode(50,20,true) ); // ReefCrest on 50% with +/-20% on sync mode
ReefAngel.PWM.SetActinic( ReefCrestMode(50,20,false) ); // ReefCrest on 50% with +/-20% on anti-sync mode
}
else if (hour()>=21 && hour()<23)
{
ReefAngel.PWM.SetDaylight( NutrientTransportMode(20,70,200,true) ); // NTM at 50% with 20% +/- on sync mode
ReefAngel.PWM.SetActinic( NutrientTransportMode(20,70,200,false) ); // NTM at 50% with 20% +/- on anti-sync mode
}
else
{
ReefAngel.PWM.SetDaylight( LongPulseMode(20,60,10,true) ); // Long pulse at 60% with 10s pulse on sync mode
ReefAngel.PWM.SetActinic( LongPulseMode(20,60,10,false) ); // Long pulse at 60% with 10s pulse on anti-sync mode
}