《电子DIY》之基于Arduino的超声波测距(HC-SR04)

模块介绍: 超声波模块介绍git 程序源码:web int trig=2; int echo=3; int echo_us=0; int temp=0; int distanceInteger=0; int distanceFraction=0; void setup() { // put your setup code here, to run once: pinMode(trig,OU
相关文章
相关标签/搜索