-
-
Save gyaresu/942e5b1c2aa3522428c2 to your computer and use it in GitHub Desktop.
bot servo test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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