Would be nice if support for "pulseIn" could be added.
The example:
board.on("ready", function() {
var ping = new five.Ping('D4');
ping.on("change", function() {
console.log("Object is " + this.in + " inches away");
});
});
results in:
TypeError: Object #<Spark> has no method 'pulseIn'
at Ping.<anonymous> (/home/georgzahlz/johnny/node_modules/johnny-five/lib/ping.js:45:13)
at wrapper [as _onTimeout] (timers.js:261:14)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
Would be nice if support for "pulseIn" could be added.
The example:
results in: