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?
Custom Menu and Main Screen Compile Error
-
- Posts: 52
- Joined: Sun Feb 12, 2012 11:16 am
Custom Menu and Main Screen Compile Error
- Attachments
-
- RA_021312_1931.pde
- (11.62 KiB) Downloaded 427 times
Re: Custom Menu and Main Screen Compile Error
DefaulBGColor, should be DefaultBGColor
The DrawMonitor error is because you have "DisplayLEDPWM" on your features. Remove it and you will be fine.
The DrawMonitor error is because you have "DisplayLEDPWM" on your features. Remove it and you will be fine.
Roberto.
-
- Posts: 52
- Joined: Sun Feb 12, 2012 11:16 am
Re: Custom Menu and Main Screen Compile Error
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);
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
Oh sorry...
I thought you weren't using it.
Put it back in and replace the line:
With this:
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);
Code: Select all
ReefAngel.LCD.DrawMonitor(15, 66, ReefAngel.Params,ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue());
Roberto.
-
- Posts: 52
- Joined: Sun Feb 12, 2012 11:16 am
Re: Custom Menu and Main Screen Compile Error
Thanks for the quick reply Roberto. My RA is just getting better and better.