Skip to content

pulseIn #59

@brasilikum

Description

@brasilikum

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions