![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
This is THE 447 FINAL PROJECT this is the frame work put your code in the spot where the it suppose to go and. Make sure you import this into your complier and work on your section, once you done just commit the changes and fork to a new folder
Dependencies: mbed-rtos mbed draw_test EALib SWSPI
Revision 10:1d1834c6715d, committed 2015-12-07
- Comitter:
- AndyTran
- Date:
- Mon Dec 07 22:10:37 2015 +0000
- Parent:
- 9:e6f3edc7f775
- Commit message:
- finsl
Changed in this revision
draw_test.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e6f3edc7f775 -r 1d1834c6715d draw_test.lib --- a/draw_test.lib Mon Dec 07 09:54:52 2015 +0000 +++ b/draw_test.lib Mon Dec 07 22:10:37 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/CECS460/code/draw_test/#1a54e4ed2669 +https://developer.mbed.org/teams/CECS460/code/draw_test/#e21ecfae42e4
diff -r e6f3edc7f775 -r 1d1834c6715d main.cpp --- a/main.cpp Mon Dec 07 09:54:52 2015 +0000 +++ b/main.cpp Mon Dec 07 22:10:37 2015 +0000 @@ -287,7 +287,7 @@ { //check for winner by destroy all enemy ship; while (true) { - bool gamelost; + bool gamelost = 0; gamelost = battle.looser(); //winner = 1; if (gamelost == 1) { @@ -295,6 +295,10 @@ led2 = 1; led3 = 1; xbee.printf("W0000E"); + while(winner == 0) + { + osDelay(30); + } //this board is loser //send a message of 0x200 to the winner } else if (winner == 1) { //spi message is the winner)