![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
For Nikhil
Dependencies: 4DGL-uLCD-SE EthernetInterface Game_Synchronizer MMA8452 SDFileSystem mbed-rtos mbed wave_player
Fork of 2035_Tanks_Shell by
Diff: misc/misc.cpp
- Revision:
- 23:77049670cae6
- Parent:
- 22:3c68eea5a609
--- a/misc/misc.cpp Thu Oct 29 05:14:49 2015 +0000 +++ b/misc/misc.cpp Fri Oct 30 08:54:10 2015 +0000 @@ -6,19 +6,6 @@ extern uLCD_4DGL uLCD; extern wave_player player; - -int CONVERT_24_TO_16_BPP(int col_24) { - int b = col_24 & 0xFF; - int g = (col_24 >> 8) & 0xFF; - int r = (col_24 >> 16)& 0xFF; - - r >>= 3; - g >>= 2; - b >>= 3; - - return r<<11 | g<<5 | b; -} - // Given the filename of a .wav file in the SD card, play the file over the speaker. void playSound(char * wav) {