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: mbed
Diff: main.cpp
- Revision:
- 12:bad33209d1bb
- Parent:
- 6:7c0a32831a4f
--- a/main.cpp Tue Jun 09 11:17:32 2015 +0000
+++ b/main.cpp Tue Jun 23 10:49:55 2015 +0000
@@ -1,19 +1,12 @@
#include "mbed.h"
-#include "messdatenerfassung.h"
+#include "Prototypen.h"
-#define PERIODEN_DAUER 10000
-PwmOut mypwm(PWM_OUT);
-AnalogIn analog_value0(A0); //For Hall-Sensor
-
-DigitalOut myled(LED1);
-
int main() {
-
- mypwm.period_us(PERIODEN_DAUER);
-
- while(1) {
- mypwm.pulsewidth_us(PERIODEN_DAUER*hall_umrechnung());
+ while(true){
+ motoransteuerung();
+ Messdaten_senden();
+ Steuerung_empfangen();
}
}
\ No newline at end of file