Exemplo n.º 1
0
//pozostałe funkcje
void Licznik(void)
{
	static char wynik=0;
	char pom;
	
	pom=KbScan();
	_delay_ms(4);
	
	if(KbScan()==pom&&wynik!=KbScan())
	{
		if(pom==1&&licznik>MIN)
			licznik--;
		else if(pom==2&&licznik<MAX)
			licznik++;
		wynik=pom;
	}
}
Exemplo n.º 2
0
	/* ??????????????????????????????????????????????????????????????????????? */
	static void SysMainBeatInterrupt(void *p)
	{
		/*
		*  scan for valid keys, key is pressed AND check if a MMCard is inserted or removed
		*/
		KbScan();
		CardCheckCard();
	}
static void SysMainBeatInterrupt(void *p)
{
	KbScan();
	CardCheckCard();
}
Exemplo n.º 4
0
/*!
 * \brief ISR MainBeat Timer Interrupt (Timer 2 for Mega128, Timer 0 for Mega256).
 *
 * This routine is automatically called during system
 * initialization.
 *
 * resolution of this Timer ISR is 4,448 msecs
 *
 * \param *p not used (might be used to pass parms from the ISR)
 */
static void SysMainBeatInterrupt(void *p)
{
    KbScan();
}