commit

Committer:
thorb3n
Date:
Thu Feb 18 14:58:28 2016 +0000
Revision:
0:0d87637e83bb
upoad;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thorb3n 0:0d87637e83bb 1 #include "pins.h"
thorb3n 0:0d87637e83bb 2 #include "mbed.h"
thorb3n 0:0d87637e83bb 3 #include "messen.h"
thorb3n 0:0d87637e83bb 4 PwmOut motor(PWM_PIN);
thorb3n 0:0d87637e83bb 5
thorb3n 0:0d87637e83bb 6 void setSpeed(float pwm_value){
thorb3n 0:0d87637e83bb 7 if(!getBreake()){
thorb3n 0:0d87637e83bb 8 motor.write(getSpeed());
thorb3n 0:0d87637e83bb 9 }
thorb3n 0:0d87637e83bb 10 }