setup

Dependencies:   mbed

main.cpp

Committer:
cheryl_he
Date:
2015-06-03
Revision:
0:8702cf8a21de

File content as of revision 0:8702cf8a21de:

#include "mbed.h"
#include "stdlib.h"
#include <vector>

//Outputs
DigitalOut led1(LED1);
DigitalOut clk(PTD5);
DigitalOut si(PTD4);
PwmOut motor1(PTA12);
PwmOut motor2(PTA4);
DigitalOut break1(PTC7);
DigitalOut break2(PTC0);
PwmOut servo(PTA5);

//bluetooth
Serial bt(PTA2, PTA1);

//Inputs
AnalogIn camData(PTC2);

//Encoder setup and variables
InterruptIn interrupt(PTA13);

int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}