Continued altering syntax to make it a .cpp

Not functional, and I don't understand how it all works
Based of
http://www.geeetech.com/wiki/index.php/Arduino_TCS230_Color_Recognition_Sensor_module
Tutorial