a command line interface that can dynamically assign pins
Dependencies: TextLCD mbed PS2
main.cpp
00001 #include "mbed.h" 00002 #include <string.h> 00003 #include "Command.h" 00004 00005 DigitalOut myled(LED1); 00006 00007 //Serial pc(USBTX, USBRX); // USB Virtual COM 00008 //char input[32]; 00009 00010 int main() { 00011 while(1) { 00012 /* 00013 // Read Input 00014 pc.printf("> "); 00015 pc.scanf("%s", input); 00016 pc.printf("\n\r"); 00017 pc.printf("%s\n\r", input); 00018 00019 // Execute Instruction 00020 if(1) 00021 execute(input);*/ 00022 run(); 00023 00024 // Pulse Check 00025 myled = 1; 00026 wait(0.2); 00027 myled = 0; 00028 wait(0.2); 00029 } 00030 }
Generated on Wed Jul 20 2022 01:09:21 by 1.7.2