Пример #1
0
/*
 ***************************************************************
 * 名称: beep_task 
 * 功能: 蜂鸣器任务
 * 输入: 1. *pdata:任务参数
 * 输出: NULL 
 * 返回: NULL 
 * 描述: 无 
 ***************************************************************
 */
static void beep_task(void *pdata)
{		
	u8 flag = 0;
	
	Beep_On(100);
	Wt588d16_Play(0);	

	Show_StrInLine(1, 0, "江苏晶浩有限");
	Show_StrInLine(2, 0, "申通快递详情单");
	Show_StrInLine(3, 0, "延中盐汽水");
	Show_StrInLine(4, 0, "liuchao");
	
	oled_Show_StrInLine(1, 0, "江苏晶浩有限");
	oled_Show_StrInLine(2, 0, "申通快递详情单");
	oled_Show_StrInLine(3, 0, "延中盐汽水");
	oled_Show_StrInLine(4, 0, "liuchao:刘超");
	
	if (flag == 1)
		WriteCharToFlash();
	
	if (flag == 1)
		RTC_Set(2015, 5, 13, 16, 50, 00);
		
	while (1)
	{
		userCardCheck();
		
		sprintf(dateshow, "%4d-%2d-%2d", calendar.w_year, calendar.w_month, calendar.w_date);
		sprintf(timeshow, "%2d:%2d:%2d", calendar.hour, calendar.min, calendar.sec);
		Show_StrInLine(3, 0, dateshow);
		Show_StrInLine(4, 0, timeshow);		

		OSTimeDlyHMSM(0, 0, 0, 300);
	}									 
}
Пример #2
0
void Beep_Toggle(void)
{
    if(Beep_Status) { Beep_Off(); }
    else { Beep_On(); }
}