Merge pull request #10 from microsoft/srietkerk-patch Bumping to 0.0.6
Merge pull request #10 from microsoft/srietkerk-patch
Bumping to 0.0.6
A MakeCode package to use sonar sensors (ping) such as the HC-SR04.
This package contains a ping block that can return the distance to an obstacle detected by the sonar.
ping
sonar.ping(DigitalPin.P1, DigitalPin.P2, PingUnit.Inches);
Use the plot bar graph block to visualize the distance reported by your sensor.
plot bar graph
basic.forever(() => { let p = sonar.ping(DigitalPin.P1, DigitalPin.P2, PingUnit.Inches); led.plotBarGraph(p, 0); })
MIT
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
pxt-sonar
A MakeCode package to use sonar sensors (ping) such as the HC-SR04.
Usage
This package contains a
pingblock that can return the distance to an obstacle detected by the sonar.Charting the distance
Use the
plot bar graphblock to visualize the distance reported by your sensor.License
MIT
Supported targets
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.