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.
pins.cpp
- Committer:
- Weranest
- Date:
- 2018-02-15
- Revision:
- 1:12f18cede014
- Parent:
- 0:62e51b80d738
- Child:
- 3:c9df852ad9ac
File content as of revision 1:12f18cede014:
//This file is strictly to define pins for buggy operations. Thats it. But thought it would be easier to overseer them like this #include "mbed.h" #include "C12832.h" #include "pins.h" //Encoder pins (created as a QEI object, so just defined naming for pins) //======================= #define channelARight PA_1 #define channelBRight #define channelIRight #define channelALeft #define channelBLeft #define channelILeft //Motor control pins //======================= PwmOut motorRight(PB_6); PwmOut motorLeft(PB_7); DigitalOut motorDirRight(PB_4); DigitalOut motorDirLeft(PB_5); DigitalOut motorModeRight(PB_2); DigitalOut motorModeLeft(PB_3); DigitalOut driveBoard (PB_1); //Line sensor pins //======================= //Magnet sensor pins //=======================