-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShieldbot.h
46 lines (39 loc) · 919 Bytes
/
Shieldbot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Created to support the release of the Sheildbot from SeeedStudios
http://www.seeedstudio.com/wiki/Shield_Bot
Created by Jacob Rosenthal and Colin Ho, December 30, 2012.
Released into the public domain.
*/
// ensure this library description is only included once
#ifndef Shieldbot_h
#define Shieldbot_h
// include types & constants of Wiring core API
#include "Arduino.h"
// library interface description
class Shieldbot
{
// user-accessible "public" interface
public:
Shieldbot();
int readS1();
int readS2();
int readS3();
int readS4();
int readS5();
void setMaxSpeed(int);
void setMaxSpeed(int, int);
void setMaxLeftSpeed(int);
void setMaxRightSpeed(int);
void rightMotor(char);
void leftMotor(char);
void drive(char, char);
void forward();
void backward();
void stop();
void stopRight();
void stopLeft();
void fastStopLeft();
void fastStopRight();
void fastStop();
};
#endif