[mw_shl_code=applescript,true]while(1)
{
delay_ms(1);
if(USB_STA!=USB_STATUS_REG)//×′쬸ıäáË
{
LCD_Fill(60,190,240,190+16,WHITE);//Çå3yÏÔê¾
if(USB_STATUS_REG&0x01)//ÕyÔúD′
{
LCD_ShowString(60,190,200,16,16,"USB Writing...");//ìáê¾USBÕyÔúD′èëêy¾Y
}
if(USB_STATUS_REG&0x02)//ÕyÔú¶á
{
LCD_ShowString(60,190,200,16,16,"USB Reading...");//ìáê¾USBÕyÔú¶á3öêy¾Y
}
if(USB_STATUS_REG&0x04)
LCD_ShowString(60,210,200,16,16,"USB Write Err ");//ìáê¾D′èë′íÎó
else
LCD_Fill(60,210,240,210+16,WHITE);//Çå3yÏÔê¾
if(USB_STATUS_REG&0x08)
LCD_ShowString(60,230,200,16,16,"USB Read Err ");//ìá꾶á3ö′íÎó
else
LCD_Fill(60,230,240,230+16,WHITE);//Çå3yÏÔê¾
USB_STA=USB_STATUS_REG;//¼Ç¼×îoóμÄ×′ì¬
}[/mw_shl_code]
例如0x01 0x02 0x04 0x08这些
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
好的,谢谢
一周热门 更多>