忘记push了,添加了RC522驱动
This commit is contained in:
+3
-2
@@ -174,11 +174,12 @@ void TP_DrwaTrage(int x,int y,int r)
|
||||
LCD_DrawLine(x,y,x,y-10,RED);
|
||||
}
|
||||
//触摸屏校准
|
||||
void TP_adjustment()
|
||||
//mode 校准模式,0 被动校准 ,1 主动校准
|
||||
void TP_adjustment(char mode)
|
||||
{
|
||||
//判断是否需要校准,从eeprom获取数据
|
||||
EEPROM_READ_BATY(16,(char *)&tconfig,sizeof(touch_config));
|
||||
if(tconfig.begin==0xab&&tconfig.end==0xcd) //判断校准标记
|
||||
if(tconfig.begin==0xab&&tconfig.end==0xcd&&mode==0) //判断校准标记
|
||||
{
|
||||
return; //已经校准过了
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user