A serial parser for a specific project
Fork of Serial_HelloWorld_Mbed by
main.cpp
- Committer:
- philipgoosen
- Date:
- 2015-07-14
- Revision:
- 1:49996c8d2982
- Parent:
- 0:879aa9d0247b
- Child:
- 2:dcca46d7ca21
File content as of revision 1:49996c8d2982:
#include "mbed.h" Serial pc(USBTX, USBRX); // tx, rx DigitalOut led(LED1); int main() { led=1; wait(0.5); led=0; pc.baud(115200); pc.printf("\n"); while(1) { //pc.putc(pc.getc() + 1); if (pc.getc() == '$' && pc.getc() == '%') { led=1; wait(1); led=0; led=1; wait(1); led=0; } // led=0; } }