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@1:12f18cede014, 2018-02-15 (annotated)
- Committer:
- Weranest
- Date:
- Thu Feb 15 20:17:42 2018 +0000
- Revision:
- 1:12f18cede014
- Parent:
- 0:62e51b80d738
- Child:
- 3:c9df852ad9ac
Working motor pwm complete
Who changed what in which revision?
User | Revision | Line number | New 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 | 1:12f18cede014 | 2 | #include "mbed.h" |
Weranest | 1:12f18cede014 | 3 | #include "C12832.h" |
Weranest | 1:12f18cede014 | 4 | #include "pins.h" |
Weranest | 0:62e51b80d738 | 5 | //Encoder pins (created as a QEI object, so just defined naming for pins) |
Weranest | 0:62e51b80d738 | 6 | //======================= |
Weranest | 0:62e51b80d738 | 7 | #define channelARight PA_1 |
Weranest | 0:62e51b80d738 | 8 | #define channelBRight |
Weranest | 0:62e51b80d738 | 9 | #define channelIRight |
Weranest | 0:62e51b80d738 | 10 | #define channelALeft |
Weranest | 0:62e51b80d738 | 11 | #define channelBLeft |
Weranest | 0:62e51b80d738 | 12 | #define channelILeft |
Weranest | 0:62e51b80d738 | 13 | //Motor control pins |
Weranest | 0:62e51b80d738 | 14 | //======================= |
Weranest | 0:62e51b80d738 | 15 | PwmOut motorRight(PB_6); |
Weranest | 0:62e51b80d738 | 16 | PwmOut motorLeft(PB_7); |
Weranest | 0:62e51b80d738 | 17 | DigitalOut motorDirRight(PB_4); |
Weranest | 0:62e51b80d738 | 18 | DigitalOut motorDirLeft(PB_5); |
Weranest | 0:62e51b80d738 | 19 | DigitalOut motorModeRight(PB_2); |
Weranest | 0:62e51b80d738 | 20 | DigitalOut motorModeLeft(PB_3); |
Weranest | 1:12f18cede014 | 21 | DigitalOut driveBoard (PB_1); |
Weranest | 0:62e51b80d738 | 22 | //Line sensor pins |
Weranest | 0:62e51b80d738 | 23 | //======================= |
Weranest | 0:62e51b80d738 | 24 | //Magnet sensor pins |
Weranest | 0:62e51b80d738 | 25 | //======================= |