Last active
May 7, 2018 00:04
-
-
Save liz-miller/85468730e5d62190e6c567d5011bcb77 to your computer and use it in GitHub Desktop.
How to make an Arduino Robot | Beginner Bots Tutorial #3
This file contains 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
/* | |
* Move Method (Step #1) | |
* Controls how our robot moves. | |
* Developed for the Beginner Bots lesson series on www.learnrobotics.org/blog | |
* Written by Liz Miller | |
* 5/6/2018 | |
*/ | |
/** Global Variables **/ | |
//Left Motor | |
int enableA = 10; | |
int motorA1 = 9; | |
int motorA2 = 8; | |
//Right Motor | |
int enableB = 5; | |
int motorB3 = 7; | |
int motorB4 = 6; | |
//move two motors for a set duration and speed | |
void move(int motor1, int motor2, int enable, int speed, int duration){ | |
// code goes here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment