Code: Select all
// Display arrows for Wavemaker
ReefAngel.LCD.DrawText(DPColor,DefaultBGColor, 64, 33,"WV:");
if (bitRead(ReefAngel.Relay.RelayData,Relay5)==1) ReefAngel.LCD.DrawText(APColor,DefaultBGColor, 82, 33,"-->"); //port 5 on
else if (bitRead(ReefAngel.Relay.RelayData,Relay6)==1) ReefAngel.LCD.DrawText(APColor,DefaultBGColor, 78, 33,"<--"); //port 6 on
else ReefAngel.LCD.DrawText(APColor,DefaultBGColor, 78, 33," O "); //port5 and port 6 off, wavemaker delay
Main2v1.cpp: In function 'void DrawCustomMain()':
Main2v1:51: error: 'Relay5' was not declared in this scope
Main2v1:52: error: 'Relay6' was not declared in this scope
Is there new code to query if a relay is on or off? Also, how do we ask for the same question for an extension relay port?
Thanks,
Jon