Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: pin_def.h
- Revision:
- 1:45f1f67eab62
- Parent:
- 0:5b681ac34259
diff -r 5b681ac34259 -r 45f1f67eab62 pin_def.h --- a/pin_def.h Wed Nov 25 06:53:50 2015 +0000 +++ b/pin_def.h Wed Dec 02 16:47:26 2015 +0000 @@ -1,36 +1,29 @@ #ifndef PIN_DEF_H #define PIN_DEF_H -#include "pin_def.h" #include "mbed.h" #include "QEI.h" -/* - * Pin Definitions: - * IR Emitters: - * Left-Straight: - * Left-Angled: - * Right-Straight: - * Right-Angled: - * - * IR Recievers: - * Left-Straight: - * Left-Angled: - * Right-Straight - * Right-Angled - * - * Encoders - * LeftEncoder: - * RightEncoder: - - * Gyroscope: - * - * PWM: - * Left-Forward: - * Left-Reverse: - * Right-Forward: - * Right-Reverse: - */ +#define RIGHT_FORWARD PB_5 +#define RIGHT_REVERSE PB_10 +#define LEFT_FORWARD PB_8 +#define LEFT_REVERSE PA_6 + +#define LEFT_ENCODER_A PA_1 +#define LEFT_ENCODER_B PA_0 +#define RIGHT_ENCODER_A PA_10 +#define RIGHT_ENCODER_B PB_3 +#define GYROSCOPE A2 + +#define EM_LEFT_FORWARD PC_11 +#define EM_LEFT_ANGLE PC_3 +#define EM_RIGHT_FORWARD PC_10 +#define EM_RIGHT_ANGLE PC_12 + +#define RE_LEFT_FORWARD A5 +#define RE_LEFT_ANGLE A4 +#define RE_RIGHT_FORWARD PA_5 +#define RE_RIGHT_ANGLE A3 #endif // PIN_DEF_H \ No newline at end of file