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.
Fork of _B15_T4_Motor by
Revision 3:acd2b6fdcd7f, committed 2016-04-21
- Comitter:
- Enenkel
- Date:
- Thu Apr 21 12:17:28 2016 +0000
- Parent:
- 2:416e90645a22
- Commit message:
- BERTL16 Motor Test
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 416e90645a22 -r acd2b6fdcd7f main.cpp --- a/main.cpp Fri Jun 19 06:52:24 2015 +0000 +++ b/main.cpp Thu Apr 21 12:17:28 2016 +0000 @@ -1,5 +1,5 @@ /*********************************** -name: BERTL_2015_MOTOR_TEST +name: BERTL_16_MOTOR_TEST 8.1.2016 author: Gottfried Enenkel HTL BULME email: ene@bulme.at description: @@ -14,14 +14,14 @@ #include "mbed.h" // ************ DEKLARATIONEN ************** -DigitalOut Von (P1_2); // Motor Spannung ab BERTL15 nötig ! -DigitalOut MotorL_EN(P1_15); // Enable -DigitalOut MotorL_FORWARD(P1_1); // Forwerts -DigitalOut MotorL_REVERSE(P1_0); // Rückwerts +DigitalOut Von (P2_13); // Motor Spannung ab BERTL15 nötig ! +DigitalOut MotorL_EN(P1_19); // Enable OB DIE LINKS ODER RECHTS IST NOCH NICHT KLAR ! +DigitalOut MotorL_FORWARD(P2_14); // Forwerts +DigitalOut MotorL_REVERSE(P2_15); // Rückwerts -DigitalOut MotorR_EN(P0_21); //Die Leitung führt zum Pin PO_21 am Prozessor -DigitalOut MotorR_FORWARD(P1_3); //Die Leitung führt zum Pin P1_3 am Prozessor -DigitalOut MotorR_REVERSE(P1_4); +DigitalOut MotorR_EN(P2_19); //Die Leitung führt zum Pin PO_21 am Prozessor +DigitalOut MotorR_FORWARD(P2_21); //Die Leitung führt zum Pin P1_3 am Prozessor +DigitalOut MotorR_REVERSE(P2_20); // ************* Hauptprogramm ************ int main() { // Start Hauptprogramm