Page 1 of 1

Custom Menu and Main Screen Compile Error

Posted: Mon Feb 13, 2012 7:35 pm
by SuperDodge
I am trying to add a custom menu and main screen to my new pde file.

When compiling I keep getting two errors:

'DefaultBGColor' was not defined in this scope

And

no matching function for call to 'ReefAngel_NokiaLCD::DrawMonitor(int, int, ParamStruct&) '

What newbie error am I making?

Re: Custom Menu and Main Screen Compile Error

Posted: Mon Feb 13, 2012 7:56 pm
by rimai
DefaulBGColor, should be DefaultBGColor
The DrawMonitor error is because you have "DisplayLEDPWM" on your features. Remove it and you will be fine.

Re: Custom Menu and Main Screen Compile Error

Posted: Mon Feb 13, 2012 8:03 pm
by SuperDodge
Uh Oh. So now I get the error 'class ReefAngelClass' has no member named 'PWM'

I assume this is because I removed DisplayLEDPWM from my features?

I was using a line here to sound a buzzer plugged into my Actinic Port. I have commented out the following line for now, but is there an alternative way to sound the buzzer?

ReefAngel.PWM.SetActinic(100);

Re: Custom Menu and Main Screen Compile Error

Posted: Mon Feb 13, 2012 8:14 pm
by rimai
Oh sorry...
I thought you weren't using it.
Put it back in and replace the line:

Code: Select all

ReefAngel.LCD.DrawMonitor(15, 66, ReefAngel.Params);
With this:

Code: Select all

ReefAngel.LCD.DrawMonitor(15, 66, ReefAngel.Params,ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue());

Re: Custom Menu and Main Screen Compile Error

Posted: Mon Feb 13, 2012 8:22 pm
by SuperDodge
Thanks for the quick reply Roberto. My RA is just getting better and better.