Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 631 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 631 Bytes

Arduino-VEX

Arduino-VEX is a library for interacting with VEX motors/servos using simple commands.

Features

  • Multiple motors!
  • Simple usage (two lines + import)
  • And more!

Installation:

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.
}