Eimantas Bernotavicius / Mbed 2 deprecated Buggy_Project

Dependencies:   QEI mbed

Committer:
Weranest
Date:
Thu Feb 15 13:19:37 2018 +0000
Revision:
0:62e51b80d738
Child:
1:12f18cede014
Test commit please ignore

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Weranest 0:62e51b80d738 1 //This file is strictly to define pins for buggy operations. Thats it. But thought it would be easier to overseer them like this
Weranest 0:62e51b80d738 2
Weranest 0:62e51b80d738 3 //Encoder pins (created as a QEI object, so just defined naming for pins)
Weranest 0:62e51b80d738 4 //=======================
Weranest 0:62e51b80d738 5 #define channelARight PA_1
Weranest 0:62e51b80d738 6 #define channelBRight
Weranest 0:62e51b80d738 7 #define channelIRight
Weranest 0:62e51b80d738 8 #define channelALeft
Weranest 0:62e51b80d738 9 #define channelBLeft
Weranest 0:62e51b80d738 10 #define channelILeft
Weranest 0:62e51b80d738 11 //Motor control pins
Weranest 0:62e51b80d738 12 //=======================
Weranest 0:62e51b80d738 13 PwmOut motorRight(PB_6);
Weranest 0:62e51b80d738 14 PwmOut motorLeft(PB_7);
Weranest 0:62e51b80d738 15 DigitalOut motorDirRight(PB_4);
Weranest 0:62e51b80d738 16 DigitalOut motorDirLeft(PB_5);
Weranest 0:62e51b80d738 17 DigitalOut motorModeRight(PB_2);
Weranest 0:62e51b80d738 18 DigitalOut motorModeLeft(PB_3);
Weranest 0:62e51b80d738 19 DigitalOut driveBoard(PB_1);
Weranest 0:62e51b80d738 20 //Line sensor pins
Weranest 0:62e51b80d738 21 //=======================
Weranest 0:62e51b80d738 22 //Magnet sensor pins
Weranest 0:62e51b80d738 23 //=======================