For Nikhil

Dependencies:   4DGL-uLCD-SE EthernetInterface Game_Synchronizer MMA8452 SDFileSystem mbed-rtos mbed wave_player

Fork of 2035_Tanks_Shell by ECE2035 Spring 2015 TA

Committer:
jford38
Date:
Mon Oct 26 02:58:37 2015 +0000
Revision:
14:36c306e26317
Split things into multiple files. Working pretty well now!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jford38 14:36c306e26317 1 #include "globals.h"
jford38 14:36c306e26317 2
jford38 14:36c306e26317 3 int CONVERT_24_TO_16_BPP(int col_24) {
jford38 14:36c306e26317 4 int b = col_24 & 0xFF;
jford38 14:36c306e26317 5 int g = (col_24 >> 8) & 0xFF;
jford38 14:36c306e26317 6 int r = (col_24 >> 16)& 0xFF;
jford38 14:36c306e26317 7
jford38 14:36c306e26317 8 r >>= 3;
jford38 14:36c306e26317 9 g >>= 2;
jford38 14:36c306e26317 10 b >>= 3;
jford38 14:36c306e26317 11
jford38 14:36c306e26317 12 return r<<11 | g<<5 | b;
jford38 14:36c306e26317 13 }