a command line interface that can dynamically assign pins
Dependencies: TextLCD mbed PS2
Diff: main.cpp
- Revision:
- 0:4b04cc4cccb4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Oct 20 20:27:04 2011 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" +#include <string.h> +#include "Command.h" + +DigitalOut myled(LED1); + +//Serial pc(USBTX, USBRX); // USB Virtual COM +//char input[32]; + +int main() { + while(1) { + /* + // Read Input + pc.printf("> "); + pc.scanf("%s", input); + pc.printf("\n\r"); + pc.printf("%s\n\r", input); + + // Execute Instruction + if(1) + execute(input);*/ + run(); + + // Pulse Check + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}