freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

酒精濃度檢測器-資料下載頁

2025-07-07 16:02本頁面
  

【正文】 *pSave++ = rdeeprom(0)。 *pSave = rdeeprom(1)。 if ((Threshold=255)||(Threshold0)) Threshold = 80。}void KeyProcess(uint num){ switch (num) { case 1: if (Threshold255) Threshold++。 break。 case 2:33 / 42 if (Threshold1) Threshold。 break。 default: break。 } L1602_int(2,4,Threshold)。 Save_Setting()。}void main(){ uint i,j。 EA = 0。 Data_Init()。 Timer0_Init()。 Port_Init()。 ADC_Init()。 EA = 1。 L1602_init()。 L1602_string(1,1,Wele to ALCT! )。 L1602_string(2,1,Designed by AAA )。 for (i=0。i1000。i++) for (j=0。j1000。j++) {。} L1602_string(1,1, )。 L1602_string(2,1, )。 L1602_string(1,1,Al: mg/100ml)。 L1602_string(2,1,Th: mg/100ml)。 Load_Setting()。 L1602_int(2,4,Threshold)。 while(1) { if (FlagStartAL == 1) { ALValue = (long)500 * GetADVal() / 256。 ALValue = ALValue K_ZERO。 if (ALValue 0) ALValue = 0。 ALValue = ALValue * K_MG_MV。 L1602_int(1,4,(int)ALValue)。 if (ALValue Threshold) Led_Warn1 = 0。 34 / 42 else Led_Warn1 = 1。 FlagStartAL = 0。 } if (DOUT == 0) Led_Warn2 = 0。 else Led_Warn2 = 1。 if ((Key_Up)amp。amp。(keyUp==0)) {FlagKeyPress = 1。 keyvalue = 1。} else if ((Key_Down)amp。amp。(keyDown==0)) {FlagKeyPress = 1。 keyvalue = 2。} if (FlagKeyPress == 1) { KeyProcess(keyvalue)。 FlagKeyPress = 0。 } if (!Key_Up) keyUp = 0。 else keyUp = 1。 if (!Key_Down) keyDown = 0。 else keyDown = 1。 DELAY(100)。 } }1602 液晶顯示程序include include void delay(){int i,j。for(i=0。 i=10。 i++)for(j=0。 j=2。 j++)。}uchar Convert(uchar In_Date){return In_Date。}void enable(uchar del){P0 = Convert(del)。RS = 0。RW = 0。E = 0。delay()。35 / 42E = 1。delay()。}void write(uchar del){P0 = Convert(del)。RS = 1。RW = 0。E = 0。delay()。E = 1。delay()。}void L1602_init(void){enable(0x01)。enable(0x38)。enable(0x0c)。enable(0x06)。enable(0xd0)。}void L1602_char(uchar hang,uchar lie,char sign){uchar a。if(hang == 1) a = 0x80。if(hang == 2) a = 0xc0。a = a + lie 1。enable(a)。write(sign)。}void L1602_string(uchar hang,uchar lie,uchar *p){uchar a。if(hang == 1) a = 0x80。if(hang == 2) a = 0xc0。a = a + lie 1。enable(a)。while(1){if(*p == 39。\039。) break。write(*p)。p++。36 / 42}}void L1602_int(uchar hang, uchar lie, long num){ uint temp。 uint qianwei, gewei,shiwei,baiwei,sign。 L1602_char(hang, lie+0, 39。 39。)。 L1602_char(hang, lie+1, 39。 39。)。 L1602_char(hang, lie+2, 39。 39。)。 L1602_char(hang, lie+3, 39。 39。)。 sign = 0。 temp = abs(num)。 qianwei = temp / 1000。 temp = temp qianwei*1000。 baiwei = temp / 100。 temp = temp baiwei*100。 shiwei = temp / 10。 gewei = temp shiwei*10。 num = abs(num)。 if (num = 1000) { L1602_char(hang, lie+1, qianwei+48)。 L1602_char(hang, lie+2, baiwei+48)。 L1602_char(hang, lie+3, shiwei+48)。 L1602_char(hang, lie+4, gewei+48)。 } else if (num=100) { L1602_char(hang, lie+2, baiwei+48)。 L1602_char(hang, lie+3, shiwei+48)。 L1602_char(hang, lie+4, gewei+48)。 } else if (num=10) { L1602_char(hang, lie+3, shiwei+48)。 L1602_char(hang, lie+4, gewei+48)。 } else { L1602_char(hang, lie+4, gewei+48)。 }37 / 4224C02 程序 include void DELAY(unsigned int t){while(t!=0)t。}void IICStart(void){ SCL=0。 DELAY(1)。 SDA=1。 SCL=1。 DELAY(1)。 SDA=0。 DELAY(1)。 SCL=0。 }void IICStop(void){ SDA=0。SCL=1。 DELAY(1)。 SDA=1。 DELAY(1)。 SCL=0。 }void SEND0(void){SDA=0。SCL=1。DELAY(1)。SCL=0。}void SEND1(void){SDA=1。DELAY(1)。SCL=1。DELAY(1)。SCL=0。}bit Check_Ack(void){ unsigned char errtime= DELAY(1)。 SCL=1。 38 / 42 DELAY(1)。 CY=SDA。 while(CY) { errtime。 CY=SDA。 if (!errtime) { IICStop()。 return 1。 }} DELAY(1)。 SCL=0。 return 0。}void Write_byte(unsigned char dat) { unsigned char i。for(i=0。i8。i++){if((dati)amp。0x80)SEND1()。elseSEND0()。}}unsigned char Read_byte(void){unsigned char i,temp=0。 for(i=0。i8。i++){ SDA=1。 SCL=1。 DELAY(1)。 if(SDA==1){temp=temp1。temp=temp|0x01。}else39 / 42temp=temp1。 SCL=0。 } return temp。}unsigned char rdeeprom(unsigned char addr){ unsigned char temp=0。bit flag=0。IICStart()。Write_byte(0xa0)。 Check_Ack()。Write_byte(addr)。Check_Ack()。IICStart()。Write_byte(0xa1)。Check_Ack()。temp=Read_byte()。SEND1()。IICStop()。 return temp。 } void wrteeprom(unsigned char addr,unsigned char dat){ IICStart()。Write_byte(0xa0)。Check_Ack()。Write_byte(addr)。Check_Ack()。Write_byte(dat)。Check_Ack()。IICStop()。}
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1