 	    		case SLAVE1_COMMANDS::CALIB_MAG:
 	    			calibMagRequest(); // note that for this command another END_CALIB_MAG command must be sent to finish
 	    			break;
+	    		case SLAVE1_COMMANDS::CALIB_GREEN:
+	    			slave1.lightArray.calibGreen();
+	    			break;
+	    		case SLAVE1_COMMANDS::CALIB_WHITE:
+	    			slave1.lightArray.calibWhite();
+	    			break;
+	    		case SLAVE1_COMMANDS::END_CALIB_LIGHT:
+	    			slave1.lightArray.endCalib();
+	    			break;
+	    		case SLAVE1_COMMANDS::LIGHT_DATA:
+	    			slave1.sendPacket(slave1.lightArray.lightData, 16);
+	    			break;
+	    		case SLAVE1_COMMANDS::LIGHT_DATA_REFS:
+	    			slave1.sendPacket(slave1.lightArray.refData, 16);
+	    			break;
+	    		case SLAVE1_COMMANDS::LIGHT_DATA_COLOURS:
+	    			slave1.sendPacket(slave1.lightArray.colours, 16);
+	    			break;
+	    		case SLAVE1_COMMANDS::LIGHT_DATA_GREEN:
+	    			slave1.sendPacket(slave1.lightArray.green, 16);
+	    			break;
+	    		case SLAVE1_COMMANDS::LIGHT_DATA_WHITE:
+	    			slave1.sendPacket(slave1.lightArray.white, 16);
+	    			break;
 	    		case 255:
 	    			break;
 	    		default:

	}
}
extern "C" int main(void){	
	Serial.begin(115200);
	pinMode(LED, OUTPUT);


		slave1.lightArray.read();
		slave1.lightArray.getColours();
		// Serial.println();
		

		
		
		uint8_t command = slave1.checkIfRequested();

