Exemplo n.º 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();
}
Exemplo n.º 2
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;
}