commit

Files at this revision

API Documentation at this revision

Comitter:
thorb3n
Date:
Thu Feb 18 14:58:28 2016 +0000
Commit message:
upoad;

Changed in this revision

motorsteuerung.cpp Show annotated file Show diff for this revision Revisions of this file
motorsteuerung.h Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/motorsteuerung.cpp	Thu Feb 18 14:58:28 2016 +0000
@@ -0,0 +1,10 @@
+#include "pins.h"
+#include "mbed.h"
+#include "messen.h"
+PwmOut motor(PWM_PIN);
+
+void setSpeed(float pwm_value){
+  if(!getBreake()){
+    motor.write(getSpeed());
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/motorsteuerung.h	Thu Feb 18 14:58:28 2016 +0000
@@ -0,0 +1,1 @@
+void setSpeed(float pwm_value);