uchar zhuanhuan(void)
{
uint a;
uint b;
uint t;
float tt;
init();
write_byte(0xcc);
write_byte(0x44);
delay1(300);
init();
write_byte(0xcc);
write_byte(0xbe);
a=read_byte();
b=read_byte();
t=b;
t<<=8;
t=t|a;
tt=t*0.0625;
t=tt*10+0.5;
return t;
/* b<<=4;
b+=(a&0xf0)>>4;
return b; */
} |