stepper motor

Dependencies:   mbed

Fork of step_basic by Frank Girald

main.cpp

Committer:
franni
Date:
2017-10-28
Revision:
0:02946e0382f5

File content as of revision 0:02946e0382f5:

#include "mbed.h"

BusOut step_secuence(PTA12,
                     PTD4,
                     PTA1,
                     PTA2);

int main()
{
    while(1) {
        step_secuence=0x0A;
        wait(0.5);
        step_secuence=0x09;
        wait(0.5);
        step_secuence=0x05;
        wait(0.5);
        step_secuence=0x06;
        wait(0.5);
    }
}