setup
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:8702cf8a21de
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jun 03 01:46:22 2015 +0000 @@ -0,0 +1,31 @@ +#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); + } +}