![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
encoder
Dependencies: MODSERIAL mbed HIDScope biquadFilter
Fork of Project_script by
Diff: main.cpp
- Revision:
- 23:c027e5c57cc8
- Parent:
- 9:c722418997b5
- Child:
- 24:b9dd6cf5c366
--- a/main.cpp Mon Oct 15 14:16:33 2018 +0000 +++ b/main.cpp Tue Oct 30 09:37:29 2018 +0000 @@ -3,14 +3,16 @@ AnalogIn potmetervalue1 (A1); AnalogIn potmetervalue2 (A2); + DigitalIn button2 (D10); //Let op, is deze niet bezet? + InterruptIn encoderA (D9); InterruptIn encoderB (D8); -DigitalOut directionpin1 (D4); -DigitalOut directionpin2 (D7); -PwmOut pwmpin1 (D5); -PwmOut pwmpin2 (D6); +DigitalOut directionpin1 (D7); +DigitalOut directionpin2 (D4); +PwmOut pwmpin1 (D6); +PwmOut pwmpin2 (D5); MODSERIAL pc(USBTX, USBRX);