Adding in REPL functionality

First, delete the servo.sweep() line from servos-repl.js, as it'll cause an error now. Instead, place this code, which will allow us to access both of our servos and our servos group object from the command-line, on the Pi:

board.repl.inject({
servoOne,
servoTwo,
servos
})

Now we're ready to play with our servos!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.12.240