当前位置: 首页 > wzjs >正文

桂林两江四湖象山景区简介保定seo推广

桂林两江四湖象山景区简介,保定seo推广,wordpress自定义文章页面模板下载,乌镇网站开发文档Arduino示例代码讲解:Ping Ping功能概述硬件部分:软件部分:代码逐行解释定义常量`setup()` 函数`loop()` 函数`microsecondsToInches()` 函数`microsecondsToCentimeters()` 函数工作原理Ping 这段代码是一个Arduino示例程序,用于读取Parallax PING)))超声波测距传感器的数…

Arduino示例代码讲解:Ping

  • Ping
    • 功能概述
        • 硬件部分:
        • 软件部分:
    • 代码逐行解释
        • 定义常量
        • `setup()` 函数
        • `loop()` 函数
        • `microsecondsToInches()` 函数
        • `microsecondsToCentimeters()` 函数
    • 工作原理

Ping

这段代码是一个Arduino示例程序,用于读取Parallax PING)))超声波测距传感器的数据,并计算出距离最近物体的距离。它将距离值通过串行通信发送到计算机,适用于需要测量距离的场景。

/* Ping))) SensorThis sketch reads a PING))) ultrasonic rangefinder and returns thedistance to the closest object in range. To do this, it sends a pulseto the sensor to initiate a reading, then listens for a pulseto return.  The length of the returning pulse is proportional tothe distance of the object from the sensor.The circuit:* +V connection of the PING))) attached to +5V* GND connection of the PING))) attached to ground* SIG connection of the PING))) attached to digital pin 7http://www.arduino.cc/en/Tutorial/Pingcreated 3 Nov 2008by David A. Mellismodified 30 Aug 2011by Tom IgoeThis example code is in the public domain.*/// this constant won't change.  It's the pin number
// of the sensor's output:
const int pingPin = 7;void setup() {// initialize serial communication:Serial.begin(9600);
}void loop()
{// establish variables for duration of the ping,// and the distance result in inches and centimeters:long duration, inches, cm;// The PING))) is triggered by a HIGH pulse of 2 or more microseconds.// Give a short LOW pulse beforehand to ensure a clean HIGH pulse:pinMode(pingPin, OUTPUT);digitalWrite(pingPin, LOW);delayMicroseconds(2);digitalWrite(pingPin, HIGH);delayMicroseconds(5);digitalWrite
http://www.dtcms.com/wzjs/368228.html

相关文章:

  • 做视频网站教程软文文章
  • 建网站做点什么好网站权重怎么看
  • 网站商城系统设计成都调查事务所
  • 网站建设业务越做越累seo优化一般多少钱
  • 宁波网站建设怎么样专门培训seo的网站
  • 做平面素材比较好的网站高端定制网站建设
  • 网站建设的软件介绍网站关键字排名优化
  • 抵押网站建设方案seo专业推广
  • 无代码做网站廊坊关键词快速排名
  • 天河网站建设价格线上推广员是做什么的
  • 网站建设套用模板网络营销和电子商务的区别
  • 中小企业网站建设方案网站怎么推广
  • 中国建设网官方网站硅灰微信营销号
  • 如何网站里做照片广告营销
  • 找别人做公司网站第一步做什么免费网站推广软件
  • 中国门户网站建设重要性怎么样创建网站
  • 滨湖网站建设电脑上突然出现windows优化大师
  • app的技术框架有哪些成都关键词seo推广电话
  • 合肥网络推广策划方案站长工具seo综合查询权重
  • 新手如何做企业网站seo网络营销公司
  • 网站建设算什么资产网络营销毕业论文范文
  • 临沂网站优化如何软文代写平台有哪些
  • 电子商务网站建设需求分析报告seo需要会什么
  • 织梦网站后台地址怎么简单制作一个网页
  • 百度网站地图代码竞价托管外包公司
  • 中国建设工程造价管理系统网站谷歌seo一个月费用需要2万吗
  • 在家做网站编辑成都网站seo收费标准
  • 做网站平面模板是啥意思谷歌推广公司哪家好
  • 网站悬浮代码如何优化网络
  • 集团企业网站设计方案营业推广怎么写