encoder verwerkt
Dependencies: MODSERIAL QEI mbed
Fork of motor_control by
main.cpp
- Committer:
- FloorC
- Date:
- 2016-09-29
- Revision:
- 1:e415c6eda278
- Parent:
- 0:8ed7e7bbc391
- Child:
- 2:80753272d9e4
File content as of revision 1:e415c6eda278:
#include "mbed.h" DigitalOut motor(D4); PwmOut pwm_motor(D5); //DigitalIn switch3(SW3); Serial pc(USBTX, USBRX); int CW = 0; int CCW = 1; int main () { while (true){ motor = CW; pwm_motor = 0.5; } }