General Arduino Information - SaratogaEDD2014/RapidPrototyper GitHub Wiki

Pins

DIR_PIN: changes direction; pin 2.

STEP_PIN: steps the motor; pin 3.

Serial Commands

setLow: Sets a given pin low.

setHigh: Sets a given pin high.

getState: Returns if a pin is high or low.

analogWrite: Gives a pin an analog value.

analogRead: Returns the analog value of a pin.

step: Makes a motor step a small amount of times (for testing).

turnOff: Sets all pins to low.

__sendData: Sends data to the Arduino.

__getData: returns data from the Arduino.