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.
Dependencies: HC_SR04_Ultrasonic_Library mbed
Fork of 1-06-03-Uebung by
Diff: main.cpp
- Revision:
- 1:128f2b08a419
- Parent:
- 0:5d64a3e741ec
- Child:
- 2:e11bc343329d
diff -r 5d64a3e741ec -r 128f2b08a419 main.cpp --- a/main.cpp Wed Mar 04 16:30:53 2015 +0000 +++ b/main.cpp Wed Apr 29 18:27:11 2015 +0000 @@ -1,12 +1,12 @@ -/** 6.8 Motor mittels Tasten vor-, rückwärts, Stop laufen lassen und Poti benützen um die Geschwindigkeit einzustellen. +/** 6.3 Motor mittels Tasten vor-, rückwärts, Stop laufen lassen und Poti benützen um die Geschwindigkeit einzustellen. */ #include "mbed.h" #include "Motor.h" // vor-/rueckwaerts - beide = Notstop -DigitalIn button1( PTC9, PullUp ); -DigitalIn button2( PTC0, PullUp ); +DigitalIn button1( A1 ); +DigitalIn button2( A2 ); // Geschwindigkeit AnalogIn poti ( A0 );
