dgf

Dependencies:   mbed

main.cpp

Committer:
hx6730
Date:
2016-05-16
Revision:
0:7f096ed0c2dd

File content as of revision 0:7f096ed0c2dd:

#include "mbed.h"

PwmOut pwm(PTD4);
BusOut mo(PTA1,PTA2);

int main() {
    while(1) {
        mo = 0x01;
        wait(1.0);
        mo = 0x02;
        wait(1.0);
        pwm = 1.0f;
    }
}