#include#include#defineucharunsignedchar#defineuintunsignedintsbitdula=P2^6;sbitwela=P2^7;sbitEchp=P2^1;//模块引脚sbitTrig=P2^0;sbittest=P1^0;uintsucceed_flag,time,timeL,timeH;uintdistance;ucharcodetable[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};voiddelay(uin