
SMARTASSES 2019
Revision 10:a4b5723b6c9d, committed 2019-02-26
- Comitter:
- estott
- Date:
- Tue Feb 26 12:23:17 2019 +0000
- Parent:
- 9:36a0289c8baf
- Child:
- 11:aae7c9c290e2
- Commit message:
- Changed the device and pins
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Feb 19 09:39:04 2019 +0000 +++ b/main.cpp Tue Feb 26 12:23:17 2019 +0000 @@ -1,21 +1,23 @@ #include "mbed.h" //Photointerrupter input pins -#define I1pin D6 -#define I2pin D11 -#define I3pin D12 +#define I1pin D3 +#define I2pin D6 +#define I3pin D5 //Incremental encoder input pins -#define CHA D4 -#define CHB D5 +#define CHApin D12 +#define CHBpin D11 //Motor Drive output pins //Mask in output byte -#define L1Lpin D9 //0x01 -#define L1Hpin D10 //0x02 -#define L2Lpin D1 //0x04 -#define L2Hpin D2 //0x08 -#define L3Lpin D0 //0x10 -#define L3Hpin D3 //0x20 +#define L1Lpin D1 //0x01 +#define L1Hpin A3 //0x02 +#define L2Lpin D0 //0x04 +#define L2Hpin A6 //0x08 +#define L3Lpin D10 //0x10 +#define L3Hpin D2 //0x20 + +#define PWMpin D9 //Motor current sense #define MCSPpin A1