1. 首页
  2. 移动开发
  3. bada
  4. 51单片机超声波模块

51单片机超声波模块

上传者: 2019-05-25 11:03:07上传 ZIP文件 1.25KB 热度 24次
#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
用户评论