Serial communication protocol project
Dependencies: C12832 DataCommClassVersion mbed
Revision 1:ab8aac1fc1ad, committed 2015-03-23
- Comitter:
- askksa12543
- Date:
- Mon Mar 23 14:48:27 2015 +0000
- Parent:
- 0:836e980f9b44
- Commit message:
- update
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 836e980f9b44 -r ab8aac1fc1ad main.cpp --- a/main.cpp Thu Mar 19 12:03:09 2015 +0000 +++ b/main.cpp Mon Mar 23 14:48:27 2015 +0000 @@ -26,4 +26,14 @@ lcd.locate(0,3); lcd.printf("Received: "); lcd.printf("%s", data); -} \ No newline at end of file +} + + +//listen runs in the address while loop - when listen returns because the preamble has been found +//then it checks if the address is correct - if it isn't it goes back to listen - if it is end the loop to receive data. +//addressing - while(!address) + //{ + //test.listen(); + //if(test.check_address()) + // address = 1; + //} \ No newline at end of file