Arduino-VEX is a library for interacting with VEX motors/servos using simple commands.
Features
- Multiple motors!
- Simple usage (two lines + import)
- And more!
Place library in Documents -> Arduino -> libraries
On mac this is easy:
cd ~/Documents/Arduino/libraries
git clone [email protected]:mrl4214/Arduino-VEX.git
##Example use:
#include <Servo.h>
#include <VexMotor.h>
VexMotor motor1(10); //Use pin 10 for our first vex motor
void setup()
{
}
void loop()
{
motor1.set(100); //100 is max. 0 is stop.
delay(100); //Delay for no real reason.
}