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

	// Process any LED events
	LED_scan();

	return 0;
}
示例#2
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;
}
示例#3
0
// Main Detection Loop
inline uint8_t Scan_loop()
{
	// Scan Matrix
	Matrix_scan( Scan_scanCount, &Scan_strobe_position, 4 );

	// Check if we are ready to leave the scan loop
	if ( Scan_strobe_position >= Matrix_totalColumns() - 1 )
	{
		Scan_strobe_position = 0;
		Scan_scanCount++;
		return 0;
	}

	return 1;
}
示例#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;
}
示例#5
0
// Main Detection Loop
inline uint8_t Scan_loop()
{
	Matrix_scan( Scan_scanCount++ );

	return 0;
}