commit
Revision 0:0d87637e83bb, committed 2016-02-18
- 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 |
diff -r 000000000000 -r 0d87637e83bb motorsteuerung.cpp --- /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
diff -r 000000000000 -r 0d87637e83bb motorsteuerung.h --- /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);