Skip to content

Instantly share code, notes, and snippets.

@gyaresu
Created July 25, 2015 20:25
Show Gist options
  • Save gyaresu/942e5b1c2aa3522428c2 to your computer and use it in GitHub Desktop.
Save gyaresu/942e5b1c2aa3522428c2 to your computer and use it in GitHub Desktop.
bot servo test
var five = require('johnny-five')
var board = new five.Board()
board.on('ready', function () {
var servo = new five.Servo(9)
board.repl.inject({
servo: servo
})
servo.sweep()
board.wait(3000, function () {
servo.stop().center()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment