Skip to content

Instantly share code, notes, and snippets.

@Robotonics
Created January 4, 2014 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Robotonics/8259427 to your computer and use it in GitHub Desktop.
Save Robotonics/8259427 to your computer and use it in GitHub Desktop.
Header for MegaBot library
// 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