Created
January 4, 2014 19:16
-
-
Save Robotonics/8259427 to your computer and use it in GitHub Desktop.
Header for MegaBot library
This file contains hidden or 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
// Arduino library to control Megabot Drive | |
// David Cotterill-Drew @2013 RoboTonics | |
#ifndef MegaBot_h | |
#define MegaBot_h | |
#include <Arduino.h> | |
class MegaBot | |
{ | |
public: | |
MegaBot(int R0, int R1, int L0, int L1, int EN0, int EN1); | |
void fwd(void); | |
void bck(void); | |
void lft(void); | |
void rgt(void); | |
void stp(void); | |
int R0; | |
int R1; | |
int EN0; | |
int EN1; | |
int L0; | |
int L1; | |
private: | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment