Added LED interval.

This commit is contained in:
skarg
2010-06-28 01:02:22 +00:00
parent a639989a3a
commit 5860470917
4 changed files with 22 additions and 5 deletions
+15
View File
@@ -143,6 +143,21 @@ void led_off_delay(
}
}
/*************************************************************************
* Description: Turn on, and delay before going off.
* Returns: none
* Notes: none
*************************************************************************/
void led_on_interval(
uint8_t index,
uint16_t interval_ms)
{
if (index < MAX_LEDS) {
led_on(index);
timer_interval_start(&Off_Delay_Timer[index], interval_ms);
}
}
/*************************************************************************
* Description: Task for blinking LED
* Returns: none