proberen motor

Dependencies:   QEI mbed

main.cpp

Committer:
FloorC
Date:
2016-09-29
Revision:
1:e415c6eda278
Parent:
0:8ed7e7bbc391

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;
        
        
}
}