4 directional EMG control of the XY table. Made during my bachelor end assignment.

Dependencies:   C12832_lcd HIDScope mbed-dsp mbed

main.cpp

Committer:
jessekaiser
Date:
2015-04-23
Revision:
3:33eb5882a9c4
Parent:
2:92a63245d11c
Child:
4:e4341e3524dc

File content as of revision 3:33eb5882a9c4:

#include "mbed.h"

DigitalOut Dir(p21);
PwmOut Step(p22);
DigitalOut MS1(p27);
DigitalOut MS2(p28);
DigitalOut MS3(p29);



int main()
{

    MS1 = 0;
    MS2 = 0;
    MS3 = 0;

    while (1) {
        Dir = 1;
        Step = 1;
        wait(0.001);
        Step = 0;
        wait(0.001);
    }

}