Custom Menu and Main Screen Compile Error

Related to the development libraries, released by Curt Binder
Post Reply
SuperDodge
Posts: 52
Joined: Sun Feb 12, 2012 11:16 am

Custom Menu and Main Screen Compile Error

Post 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?
Attachments
RA_021312_1931.pde
(11.62 KiB) Downloaded 427 times
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Custom Menu and Main Screen Compile Error

Post by rimai »

DefaulBGColor, should be DefaultBGColor
The DrawMonitor error is because you have "DisplayLEDPWM" on your features. Remove it and you will be fine.
Roberto.
SuperDodge
Posts: 52
Joined: Sun Feb 12, 2012 11:16 am

Re: Custom Menu and Main Screen Compile Error

Post 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);
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Custom Menu and Main Screen Compile Error

Post 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());
Roberto.
SuperDodge
Posts: 52
Joined: Sun Feb 12, 2012 11:16 am

Re: Custom Menu and Main Screen Compile Error

Post by SuperDodge »

Thanks for the quick reply Roberto. My RA is just getting better and better.
Image
Post Reply