Skip to content

Instantly share code, notes, and snippets.

@amcjen
Created May 2, 2014 23:30
Show Gist options
  • Save amcjen/933fe627383de329804b to your computer and use it in GitHub Desktop.
Save amcjen/933fe627383de329804b to your computer and use it in GitHub Desktop.
function startup { timer3.initialize(20000); };
function left { timer3.pwm(5, arg(1)); };
function center { timer3.pwm(4, arg(1)); };
function right { timer3.pwm(3, arg(1)); };
function centerleft { center(56) };
function centerright { center(68) };
function centercenter { center(62) };
function rightforward { right(72) };
function rightbackward { right(52) };
function rightcenter { right(64) };
function leftforward { left(52) };
function leftbackward { left(72) };
function leftcenter { left(62) };
function centerall { centercenter; leftcenter; rightcenter };
function leftgait { centerleft; leftforward; rightbackward; };
function rightgait { centerright; rightforward; leftbackward };
@alexglow
Copy link

alexglow commented May 3, 2014

SO RAD

@fixpert
Copy link

fixpert commented May 3, 2014

Yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment