/* Disables the device (putting it in lower power sleep mode)  */
int tcs34725Disable(lua_State *L)
/* Disables the device (putting it in lower power sleep mode)  */
int tcs34725Disable(lua_State *L)
{
	uint8_t reg = 0;
	reg = tcs34725Read8(TCS34725_ENABLE);
	tcs34725Write8(TCS34725_ENABLE, reg & ~(TCS34725_ENABLE_PON | TCS34725_ENABLE_AEN));
	_tcs34725Initialised = false;
	return 0;
}