beautypg.com

Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual

Page 66

background image

CHAPTER 6 • TIMERS AND CLOCKS 65

ClickLedOff(ALLRED);
ClickUtilConditionalPause(10000,ClickBtnPressed);
Startup = FALSE;
ClickLedOff(ALLRED);
}
else
{
PlayPauseBtnCheck();
}
UpdateProgress();
}

void ProgressTimerISR(void)
{
static char ProgressCounter;

#GLOBAL_INIT
{
ProgressState = 0;
ProgressCounter = 0;
ProgressStateRead = TRUE;
}

ProgressCounter++;
if ( (ProgressCounter >= 22)
&& (ProgressStateRead == TRUE)
)
{
ProgressCounter = 0;
ProgressState++;
if (ProgressState > 3)
{
ProgressState = 0;
}
ProgressStateRead = FALSE;
}
}

void Setup( void )
{