/* Reads the raw red, green, blue and clear channel values.  */
int tcs34725GetRawData(lua_State *L)
/* Reads the raw red, green, blue and clear channel values.  */
int tcs34725GetRawData(lua_State *L)
{
	uint16_t r;
	uint16_t g;
	uint16_t b;
	uint16_t c;
	if (!_tcs34725Initialised)
	{
		return luaL_error(L, "TCS34725 not initialised.");
	}
	c = tcs34725Read16(TCS34725_CDATAL);
	r = tcs34725Read16(TCS34725_RDATAL);
	g = tcs34725Read16(TCS34725_GDATAL);
	b = tcs34725Read16(TCS34725_BDATAL);
	lua_pushinteger(L, c);
	lua_pushinteger(L, r);
	lua_pushinteger(L, g);
	lua_pushinteger(L, b);
	return 4;
}