Beispiel #1
0
void amode_leff1 (void)
{
	register U8 my_lamplist = lamplist;
	if (lamplist == LAMPLIST_CLOCK_HOURS)
		lamplist_set_apply_delay (TIME_50MS);
	else
		lamplist_set_apply_delay (TIME_66MS);
	for (;;)
		lamplist_apply (my_lamplist, leff_toggle);
}
Beispiel #2
0
void left_loop_leff (void)
{
	lamplist_set_apply_delay (TIME_16MS);
	lamplist_apply (LAMPLIST_SORT3, leff_toggle);
	lamplist_apply (LAMPLIST_SORT3, leff_toggle);
	leff_exit ();
}
Beispiel #3
0
void circle_out_leff (void)
{
	lamplist_set_apply_delay (TIME_33MS);
	lamplist_apply (LAMPLIST_CIRCLE_OUT, leff_on);
	lamplist_apply (LAMPLIST_CIRCLE_OUT, leff_off);
	leff_exit ();
}
Beispiel #4
0
/****************************************************************************
 *
 * attract mode lighting effects
 *
 ***************************************************************************/
void amode_leff (void) {
	U8 i;
	gi_leff_enable (PINIO_GI_STRINGS);
	lamplist_set_apply_delay (TIME_16MS);
	for (;;) {
			lamplist_apply (LAMPLIST_BOTTOM_TOP, leff_toggle); //toggle
			task_sleep (TIME_100MS);
			lamplist_apply (LAMPLIST_TOP_BOTTOM, leff_toggle); //toggle
			task_sleep (TIME_100MS);

			for (i=0; i < 10; i++) {
				lamplist_apply (LAMPLIST_AMODE_ALL, leff_toggle); //toggle
				task_sleep (TIME_100MS);
			}//end of loop

			lamplist_apply (LAMPLIST_LEFT_RIGHT, leff_toggle); //toggle
			task_sleep (TIME_100MS);
			lamplist_apply (LAMPLIST_RIGHT_LEFT, leff_toggle); //toggle
			task_sleep (TIME_100MS);

			for (i=0; i < 10; i++) {
				lamplist_apply (LAMPLIST_AMODE_ALL, leff_toggle); //toggle
				task_sleep (TIME_100MS);
			}//end of loop
}//end of endless loop
	task_exit ();
}//end of function
Beispiel #5
0
void amode_leff_subset_task (void)
{
	register U8 lamplist = amode_leff_subset;
	lamplist_set_apply_delay (TIME_100MS);
	for (;;)
		lamplist_apply (lamplist, leff_toggle);
}
Beispiel #6
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);
	}
}
Beispiel #7
0
void right2left_leff (void) {
	lamplist_set_apply_delay (TIME_16MS);
	lamplist_apply (LAMPLIST_RIGHT_LEFT, leff_toggle); //toggle
	task_sleep (TIME_100MS);
	lamplist_apply (LAMPLIST_LEFT_RIGHT, leff_toggle); //toggle
	task_sleep (TIME_100MS);
	leff_exit ();
}// end of function
Beispiel #8
0
void top2bot_leff (void) {
	lamplist_set_apply_delay (TIME_16MS);
	lamplist_apply (LAMPLIST_TOP_BOTTOM, leff_toggle); //toggle
	task_sleep (TIME_100MS);
	lamplist_apply (LAMPLIST_BOTTOM_TOP, leff_toggle); //toggle
	task_sleep (TIME_100MS);
	leff_exit ();
}// end of function
Beispiel #9
0
void lock_leff (void)
{
	lamplist_set_apply_delay (TIME_16MS);
	leff_create_peer (lock_leff_task);
	task_sleep (TIME_300MS);
	lamplist_apply (LAMPLIST_LOCK_TEST, leff_toggle);
	task_sleep (TIME_200MS);
	leff_exit ();
}
Beispiel #10
0
void strobe_up_leff (void)
{
	leff_create_peer (gi_cycle_leff);
	lamplist_set_apply_delay (TIME_16MS);
	leff_create_peer (pf_strobe_up_subtask);
	task_sleep (TIME_200MS);
	leff_create_peer (pf_strobe_up_subtask);
	task_sleep_sec (1);
	task_kill_peers ();
	leff_exit ();
}
Beispiel #11
0
void strobe_down_leff (void)
{
	triac_leff_disable (TRIAC_GI_MASK);
	lamplist_set_apply_delay (TIME_16MS);
	leff_create_peer (pf_strobe_down_subtask);
	task_sleep (TIME_200MS);
	leff_create_peer (pf_strobe_down_subtask);
	task_sleep_sec (1);
	task_kill_peers ();
	triac_leff_enable (TRIAC_GI_MASK);
	leff_exit ();
}
Beispiel #12
0
void jackpot_leff (void)
{
	lamplist_set_apply_delay (TIME_66MS);
	leff_create_peer (jackpot_subleff);
	task_sleep_sec (1);
	task_kill_gid (GID_LEFF);

	lamplist_set_apply_delay (TIME_33MS);
	leff_create_peer (jackpot_subleff);
	task_sleep_sec (1);
	task_kill_gid (GID_LEFF);

	lamplist_set_apply_delay (TIME_16MS);
	leff_create_peer (jackpot_subleff);
	task_sleep_sec (1);
	task_kill_gid (GID_LEFF);

	lamplist_set_apply_delay (TIME_16MS);
	leff_create_peer (jackpot_subleff);
	task_sleep_sec (3);
	leff_exit ();
}
Beispiel #13
0
void door_strobe_leff (void)
{
	triac_leff_disable (TRIAC_GI_MASK);
	lamplist_apply (LAMPLIST_DOOR_PANELS, leff_off);
	lamplist_set_apply_delay (TIME_33MS);
	leff_create_peer (door_strobe_subtask);
	task_sleep (TIME_100MS);
	leff_create_peer (door_strobe_subtask);
	task_sleep_sec (2);
	task_kill_peers ();
	triac_leff_enable (TRIAC_GI_MASK);
	leff_exit ();
}
Beispiel #14
0
void flash_all_leff (void)
{
	U8 i;

	lamplist_set_apply_delay (0);
	triac_leff_enable (TRIAC_GI_MASK);
	lamplist_apply_leff_alternating (LAMPLIST_AMODE_ALL, 0);
	for (i=0; i < 32; i++)
	{
		lamplist_apply (LAMPLIST_AMODE_ALL, leff_toggle);
		task_sleep (TIME_66MS);
	}
	lamplist_apply (LAMPLIST_AMODE_ALL, leff_on);
	task_sleep_sec (1);
	leff_exit ();
}
Beispiel #15
0
void color_cycle_leff (void)
{
	U8 i;
	const U8 count = 9;

	lamplist_set_apply_delay (0);

	i = count;
	lamplist_apply (LAMPLIST_RED_LAMPS, leff_on);
	do {
		lamplist_apply (LAMPLIST_RED_LAMPS, leff_toggle);
		task_sleep (TIME_100MS);
	} while (--i != 0);

	i = count;
	lamplist_apply (LAMPLIST_WHITE_LAMPS, leff_on);
	do {
		lamplist_apply (LAMPLIST_WHITE_LAMPS, leff_toggle);
		task_sleep (TIME_100MS);
	} while (--i != 0);

	i = count;
	lamplist_apply (LAMPLIST_YELLOW_LAMPS, leff_on);
	do {
		lamplist_apply (LAMPLIST_YELLOW_LAMPS, leff_toggle);
		task_sleep (TIME_100MS);
	} while (--i != 0);

	i = count;
	lamplist_apply (LAMPLIST_ORANGE_LAMPS, leff_on);
	do {
		lamplist_apply (LAMPLIST_ORANGE_LAMPS, leff_toggle);
		task_sleep (TIME_100MS);
	} while (--i != 0);

	i = count;
	lamplist_apply (LAMPLIST_AMBER_LAMPS, leff_on);
	do {
		lamplist_apply (LAMPLIST_AMBER_LAMPS, leff_toggle);
		task_sleep (TIME_100MS);
	} while (--i != 0);

	leff_exit ();
}
Beispiel #16
0
void multi_strobe_leff (void)
{
	U8 i;

	leff_create_peer (multi_strobe1_subtask);
	task_sleep (TIME_300MS);
	leff_create_peer (multi_strobe2_subtask);
	task_sleep (TIME_300MS);
	leff_create_peer (multi_strobe3_subtask);
	task_sleep (TIME_300MS);

	for (i=0; i< 2; i++)
	{
		lamplist_set_apply_delay (TIME_33MS);
		lamplist_apply (LAMPLIST_SORT4, leff_toggle);
		task_sleep (TIME_500MS);
	}
	task_kill_peers ();
	leff_exit ();
}
Beispiel #17
0
void rocket_leff (void)
{
	U8 i;	
	if (live_balls != 1)
	{
		triac_leff_enable (TRIAC_GI_MASK);
	}

	for (i=0; i< 7; i++)
	{	
		flasher_pulse (FLASH_UR_FLIPPER);
		task_sleep (TIME_66MS);
	}
	triac_leff_enable (TRIAC_GI_MASK);
	lamplist_set_apply_delay (TIME_16MS);
	leff_create_peer (rocket_leff_subtask);
	task_sleep (TIME_66MS);
	leff_create_peer (rocket_leff_subtask);
	task_sleep_sec (1);
	task_kill_peers ();
	leff_exit ();
}
Beispiel #18
0
void door_strobe_subtask (void)
{
	lamplist_set_apply_delay (TIME_16MS);
	for (;;)
		lamplist_apply (LAMPLIST_DOOR_PANELS, leff_toggle);
}
Beispiel #19
0
//run a circle out originating at standup target #x
void frenzy5_leff (void) {
	lamplist_set_apply_delay (TIME_16MS);
	lamplist_apply (LAMPLIST_CIRCLE_OUT5, leff_toggle);
	task_sleep (TIME_33MS);
	leff_exit ();
}// end of function
Beispiel #20
0
/****************************************************************************
 *
 * car chase lighting effects
 *
 ****************************************************************************/
void car_chase_leff (void) {
	lamplist_set_apply_delay (TIME_16MS);
	lamplist_apply_step (LAMPLIST_LEFT_RIGHT, leff_toggle); //toggle
	task_sleep (TIME_1S);
	leff_exit ();
}// end of function
Beispiel #21
0
void multi_strobe3_subtask (void)
{ for (;;) { lamplist_set_apply_delay (TIME_33MS); lamplist_apply (LAMPLIST_SORT3, leff_toggle); task_sleep (TIME_500MS); } }