Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <servo.h>
- Servo leftMotor, rightMotor;
- void setup() {
- // put your setup code here, to run once:
- leftMotor.attach(9);
- leftMotor.attach(13);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- leftMotor.write(45);
- rightMotor.right(45);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement