ReadValue=ReadSet1302(0x81);//從秒寄存器讀數(shù)據(jù)second=((ReadValue&0x70)>>4)*10+(ReadValue&0x0F);//將讀出數(shù)據(jù)轉(zhuǎn)化DisplaySecond(second);//顯示秒ReadValue=ReadSet1302(0x83);//從分寄存器讀minute=((ReadValue&0x70)>>4)*10+(ReadValue&0x0F);//將讀出數(shù)據(jù)轉(zhuǎn)化DisplayMinute(minute);//顯示分ReadValue=ReadSet1302(0x85);//從分寄存器讀hour=((ReadValue&0x70)>>4)*10+(ReadValue&0x0F);//將讀出數(shù)據(jù)轉(zhuǎn)化DisplayHour(hour);//顯示小時(shí)ReadValue=ReadSet1302(0x87);//從分寄存器讀day=((ReadValue&0x70)>>4)*10+(ReadValue&0x0F);//將讀出數(shù)據(jù)
網(wǎng)站導(dǎo)航
- zblogPHP模板zbpkf
- zblog免費(fèi)模板zblogfree
- zblog模板學(xué)習(xí)zblogxuexi
- zblogPHP仿站zbpfang