dit is em
Dependencies: mbed
Diff: main.cpp
- Revision:
- 19:25663276160d
- Parent:
- 18:3a613ea8e28c
- Child:
- 20:9f4ba1b3d06e
--- a/main.cpp Wed May 17 10:02:22 2017 +0000 +++ b/main.cpp Tue May 23 11:36:21 2017 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" + PwmOut motorleftspeed(D6); PwmOut motorrightspeed(D7); DigitalOut MotorL1pin (D12); @@ -27,6 +28,7 @@ int position = 0; int pos; + int mapcurrent(float input = 0.00,float inputmin = 0.00, float inputmax = 0.00,int outputmin = 0, int outputmax = 0) { return (input - inputmin) * (outputmax - outputmin) / (inputmax - inputmin) + outputmin; @@ -34,6 +36,8 @@ // poar neemn // twee poar neemn // twee tettn in n envelop +//neuken tot de vellen er bij hangen + int stepper() { switch (stapmode) { @@ -199,3 +203,7 @@ MotorR2pin = MotorR2; } + +int main (){ + + } \ No newline at end of file