Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 102
CHAPTER 9 • DIGITAL INPUT/OUTPUT 101
break;
case YELLOW_INDICATION:
if (inputState == RED_INDICATION)
IndicationStateCurr = RED_INDICATION;
break;
case RED_INDICATION:
if (inputState == GREEN_INDICATION)
IndicationStateCurr = GREEN_INDICATION;
break;
case DUAL_INDICATION:
if (inputState == RED_INDICATION)
IndicationStateCurr = RED_INDICATION;
if (inputState == GREEN_INDICATION)
IndicationStateCurr = GREEN_INDICATION;
if (inputState == YELLOW_INDICATION)
IndicationStateCurr = YELLOW_INDICATION;
break;
default:
}
}
else
{
IndicationStateCurr = DUAL_INDICATION;
}
switch(IndicationStateCurr)
{
case RED_INDICATION:
ClickLedOn(RED4);
ClickLedOff(YELLOW4);
break;
case YELLOW_INDICATION:
ClickLedOn(YELLOW4);
ClickLedOff(RED4);
break;
case GREEN_INDICATION:
ClickLedOff(YELLOW4);
ClickLedOff(RED4);