超声波测距

模块型号HC-RS04 代码以下:javascript /*Echo接P20,Trig接P21*/ #include<reg52.h> #include<intrins.h > typedef unsigned char uchar; typedef unsigned int uint; sbit we=P2^7; sbit du=P2^6; sbit Re=P2^0; //接收信号 sbit
相关文章
相关标签/搜索