WayenWeng / pxt-grove-ultrasonic-ranger

pxt packet for grove ultrasonic ranger
0 stars 0 forks source link

Grove - Ultrasonic Ranger

A PXT package for Seeed Studio Grove - Ultrasonic Ranger, see https://www.seeedstudio.com/Grove-Ultrasonic-Ranger-p-960.html

Basic usage

// Measure distance in centimeters, specify the signal pin
let distance = Grove_Ultrasonic_Ranger.measureInCentimeters(DigitalPin.P0);
// Measure distance in inches, specify the signal pin
let distance = Grove_Ultrasonic_Ranger.measureInInches(DigitalPin.P0);

License

MIT

Supported targets