示例#1
0
// Main Poll Loop
// This is for operations that need to be run as often as possible
// Usually reserved for LED update routines and other things that need quick update rates
void Scan_poll()
{
	// Prepare any LED events
	Pixel_process();

	// Process any LED events
	LED_scan();
}
示例#2
0
// Main Detection Loop
inline uint8_t Scan_loop()
{
	// Scan Matrix
	Matrix_scan( Scan_scanCount++ );

	// Process any LED events
	LED_scan();

	return 0;
}
示例#3
0
// Main Detection Loop
inline uint8_t Scan_loop()
{
	// Scan Matrix
	Matrix_scan( Scan_scanCount++ );

	// Process any interconnect commands
	Connect_scan();

	// Process any LED events
	LED_scan();

	return 0;
}
示例#4
0
// Main Detection Loop
inline uint8_t Scan_loop()
{
	// Scan Matrix
	Matrix_scan( Scan_scanCount, &Scan_strobe_position, 4 );

	// Prepare any LED events
	Pixel_process();

	// Process any LED events
	LED_scan();

	// Check if we are ready roll ovr the strobe position
	if ( Scan_strobe_position >= Matrix_totalColumns() )
	{
		Scan_strobe_position = 0;
		Scan_scanCount++;
	}

	return 0;
}