예제 #1
0
파일: UI.cpp 프로젝트: N3MIS15/firmware
void UI::ticks()
{
    D4D_TimeTickPut();
    D4D_CheckTouchScreen();
    D4D_Poll();

    #if BREWPI_BUZZER
	buzzer.setActive(alarm.isActive() && !buzzer.isActive());
    #endif
}
예제 #2
0
파일: main.c 프로젝트: Gargy007/eGUI
/*LW Timer CallBack*---------------------------------------
* 
* Function Name    : Time_event25ms
* Comments     :
*    This function do: 	periodical events in 25ms
*
*END*-----------------------------------------------------*/
static void Time_event25ms(void* pUser)
{
  static Byte actual_time = 0;
  TIME_FLAGS t_flags;

  D4D_TimeTickPut();
		
  /* set the internal time flags */
  actual_time++;
  t_flags.all = (LWord)(actual_time ^ (actual_time - 1));

  time.all |= t_flags.all;
  
  if(t_flags.bits.b50ms)
    D4D_CheckTouchScreen();
  
  if(t_flags.bits.b100ms)
    time100sm_cnt++;		
}