Page 2 of 2
Re: Dim LEDs with PWM expansion and alternate wavemaker
Posted: Wed Feb 15, 2012 3:01 pm
by rimai
if you enable wifi athentication, none of the available apps will work.
If you enable the date/time feature, it will use up a lot of memory.
Re: Dim LEDs with PWM expansion and alternate wavemaker
Posted: Wed Feb 15, 2012 3:08 pm
by rimai
I can compile with the folowing features:
wifi
wdt
custom menu
pwm expansion
version menu
display led pwm
Re: Dim LEDs with PWM expansion and alternate wavemaker
Posted: Wed Feb 15, 2012 5:57 pm
by Aricml
So will the Wifi not work because of the custom code or is there another reason that Wifi will not work? And I can forgo the clouds as long as it's still possible to have alternating wavemakers, and the sunrise/sunset of the LED's, hopefully with ability to set times for actinics (channels 2 and 3) seperate from daylight (channels 0 and 1). Thank you so much for the help!
Re: Dim LEDs with PWM expansion and alternate wavemaker
Posted: Wed Feb 15, 2012 6:16 pm
by rimai
Yes, wifi is in the feature list I typed above
Re: Dim LEDs with PWM expansion and alternate wavemaker
Posted: Wed Feb 15, 2012 6:30 pm
by binder
Re: Dim LEDs with PWM expansion and alternate wavemaker
Posted: Wed Feb 15, 2012 6:32 pm
by Aricml
Oh thank you, I would love to have that code if you could please!
Re: Dim LEDs with PWM expansion and alternate wavemaker
Posted: Wed Feb 15, 2012 6:44 pm
by binder
Aricml wrote:Oh thank you, I would love to have that code if you could please!
This is the fixed up internal memory file:
Code: Select all
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <Time.h>
#include <OneWire.h>
#include <RA_NokiaLCD.h>
#include <avr/pgmspace.h>
#include <InternalEEPROM.h>
#include <Wire.h>
#include <Memory.h>
RA_NokiaLCD e;
void setup()
{
e.Init();
e.Clear(COLOR_WHITE,0,0,132,132);
e.BacklightOn();
InternalMemory.MHOnHour_write(15);
InternalMemory.MHOnMinute_write(30);
InternalMemory.MHOffHour_write(21);
InternalMemory.MHOffMinute_write(0);
InternalMemory.MHDelay_write(7);
InternalMemory.StdLightsOnHour_write(14);
InternalMemory.StdLightsOnMinute_write(0);
InternalMemory.StdLightsOffHour_write(21);
InternalMemory.StdLightsOffMinute_write(30);
InternalMemory.DP1OnHour_write(20);
InternalMemory.DP1OnMinute_write(0);
InternalMemory.DP2OnHour_write(22);
InternalMemory.DP2OnMinute_write(30);
InternalMemory.DP1Timer_write(4);
InternalMemory.DP2Timer_write(4);
InternalMemory.DP1RepeatInterval_write(60);
InternalMemory.DP2RepeatInterval_write(60);
InternalMemory.ATOTimeout_write(60);
InternalMemory.ATOHighTimeout_write(60);
InternalMemory.ATOHourInterval_write(0);
InternalMemory.ATOHighHourInterval_write(0);
InternalMemory.FeedingTimer_write(900);
InternalMemory.LCDTimer_write(600);
InternalMemory.LEDPWMActinic_write(20);
InternalMemory.LEDPWMDaylight_write(20);
InternalMemory.WM1Timer_write(10);
InternalMemory.WM2Timer_write(15);
InternalMemory.HeaterTempOn_write(766);
InternalMemory.HeaterTempOff_write(770);
InternalMemory.ChillerTempOn_write(774);
InternalMemory.ChillerTempOff_write(770);
InternalMemory.OverheatTemp_write(1500);
InternalMemory.PHMax_write(830);
InternalMemory.PHMin_write(540);
InternalMemory.SalMax_write(2550);
InternalMemory.RFMode_write(Constant);
InternalMemory.RFSpeed_write(140);
InternalMemory.RFDuration_write(8);
InternalMemory.RFDuration_write(8);
InternalMemory.PWMSlopeStartD_write(15);
InternalMemory.PWMSlopeEndD_write(100);
InternalMemory.PWMSlopeDurationD_write(60);
InternalMemory.PWMSlopeStartA_write(15);
InternalMemory.PWMSlopeEndA_write(100);
InternalMemory.PWMSlopeDurationA_write(60);
InternalMemory.IMCheck_write(0x5241494D);
}
void loop()
{
// display success screen
e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*2, "Internal Memory Set");
e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*4, "Now load your");
e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*5, " RA code file");
delay(5000);
}
If you are going to be updating your generated memory file, just replace all the existing lines that contain "e.FUNCTION"
Re: Dim LEDs with PWM expansion and alternate wavemaker
Posted: Wed Feb 15, 2012 6:57 pm
by Aricml
Thanks binder, and rimai, if you could compile that code I would really appreciate it.