Exemple #1
0
static void jackpot_subleff (void)
{
	lamplist_apply_nomacro (LAMPLIST_CIRCLE_OUT, leff_off);
	lamplist_apply (LAMPLIST_CIRCLE_OUT, leff_on);
	lamplist_apply_leff_alternating (LAMPLIST_CIRCLE_OUT, 1);
	for (;;)
	{
		lamplist_apply_nomacro (LAMPLIST_CIRCLE_OUT, leff_toggle);
		task_sleep (TIME_33MS);
	}
	task_exit ();
}
Exemple #2
0
void amode_leff (void)
{
	U8 i;
	triac_leff_enable (TRIAC_GI_MASK);

	for (;;)
	{
		amode_leff_subset = LAMPLIST_DOOR_PANELS_AND_HANDLE;
		leff_create_peer (amode_leff_subset_task);
		task_sleep (TIME_33MS);
	
		for (amode_leff_subset = LAMPLIST_DOOR_LOCKS_AND_GUMBALL;
			amode_leff_subset <= LAMPLIST_SPIRAL_AWARDS;
			amode_leff_subset++)
		{
			leff_create_peer (amode_leff_subset_task);
			task_sleep (TIME_33MS);
		}

		task_sleep_sec (15);
		task_kill_peers ();

		lamplist_apply_nomacro (LAMPLIST_SORT1, leff_off);
		lamplist_set_apply_delay (TIME_16MS);
		for (i=0 ; i < 10; i++)
			lamplist_apply (LAMPLIST_SORT1, leff_toggle);
	}
}