文件名称:Arduino_SharpIR:允许从Sharp IR传感器获取距离数据的Arduino库
文件大小:12KB
文件格式:ZIP
更新时间:2024-05-20 03:58:54
arduino distance sensor arduino-library hacktoberfest
夏普红外 允许从Sharp模拟距离传感器获取距离数据的Arduino库 当前支持的传感器型号 GP2Y0A41SK0F GP2Y0A21YK0F GP2Y0A02YK0F 用法 将库添加到草图 # include < SharpIR> 创建一个等距 SharpIR sensorName (sensorModel, sensorPin); sensorName : the name of the object sensorModel : the model code of the sensor (e.g. GP2YA41SK0F) sensorPin : the analog pin where the sensor Vout pin is attached 采集数据 sensorName.getDistance(); sensorName.getDistan
【文件预览】:
Arduino_SharpIR-master
----src()
--------SharpIR.h(566B)
--------SharpIR.cpp(774B)
----LICENSE.md(20KB)
----CHANGELOG.md(2KB)
----keywords.txt(165B)
----library.properties(306B)
----examples()
--------getDistance()
----README.md(3KB)