![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
SMARTASSES 2019
Diff: main.cpp
- Revision:
- 10:a4b5723b6c9d
- Parent:
- 5:08f338b5e4d9
- Child:
- 11:aae7c9c290e2
--- 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