Skip to content

Commit

Permalink
Joystick: cleanup example
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 8, 2015
1 parent a4e0d29 commit cafeaa4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions eg/joystick-claw.js
Expand Up @@ -8,11 +8,12 @@ board.on("ready", function() {
var claw = new five.Servo({
pin: 9,
range: [0, 170]
}),
joystick = new five.Joystick({
pins: ["A0", "A1"],
freq: 250
});
});

var joystick = new five.Joystick({
pins: ["A0", "A1"],
freq: 250
});

// Set the claw degrees to half way
// (the joystick deadzone)
Expand Down

0 comments on commit cafeaa4

Please sign in to comment.