Jeffery Hurley
/
Asteroids
Simple starter skeleton for asteroids video game.
Revision 5:454ff3197a74, committed 2021-04-01
- Comitter:
- jhurley31
- Date:
- Thu Apr 01 20:09:47 2021 +0000
- Parent:
- 4:a8e686ae8d2c
- Commit message:
- Updating OS
Changed in this revision
diff -r a8e686ae8d2c -r 454ff3197a74 LCDGraphics/uLCD_4DGL_Graphics.cpp --- a/LCDGraphics/uLCD_4DGL_Graphics.cpp Thu Apr 01 19:42:22 2021 +0000 +++ b/LCDGraphics/uLCD_4DGL_Graphics.cpp Thu Apr 01 20:09:47 2021 +0000 @@ -233,7 +233,7 @@ writeBYTE(w & 0xFF); writeBYTE((h >> 8) & 0xFF); writeBYTE(h & 0xFF); - wait_ms(1); + ThisThread::sleep_for(1); for (int i=0; i<w*h; i++) { red5 = (colors[i] >> (16 + 3)) & 0x1F; // get red on 5 bits green6 = (colors[i] >> (8 + 2)) & 0x3F; // get green on 6 bits @@ -242,7 +242,7 @@ writeBYTEfast(((green6 << 5) + (blue5 >> 0)) & 0xFF); // second part of 16 bits color } int resp=0; - while (!_cmd.readable()) wait_ms(TEMPO); // wait for screen answer + while (!_cmd.readable()) ThisThread::sleep_for(TEMPO); // wait for screen answer if (_cmd.readable()) resp = _cmd.getc(); // read response if any switch (resp) { case ACK : // if OK return 1 @@ -283,7 +283,7 @@ writeBYTE(command[i]); } - while (!_cmd.readable()) wait_ms(TEMPO); // wait a bit for screen answer + while (!_cmd.readable()) ThisThread::sleep_for(TEMPO); // wait a bit for screen answer while ( resp < ARRAY_SIZE(response)) { //read ack and 16-bit color response temp = _cmd.getc();
diff -r a8e686ae8d2c -r 454ff3197a74 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Thu Apr 01 20:09:47 2021 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#cf4f12a123c05fcae83fc56d76442015cb8a39e9
diff -r a8e686ae8d2c -r 454ff3197a74 mbed.bld --- a/mbed.bld Thu Apr 01 19:42:22 2021 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file