You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi,

    I guess this isn't really something you wanted to pay someone for? In which case it should really go on the Puck.js forum - I'll move it.

    Based on­meter-gyro

    var steps = 0;
    Puck.on('accel',function(a) {
      if (steps>20) LED2.set();

    And maybe you want to reset it too when you press the button., so you can add:

    setWatch(function() {
      steps = 0;
    }, BTN, {edge:"rising", repeat:true});

Avatar for Gordon @Gordon started