/** * <summary> * Returns the current RGB color of the LED. * <para> * </para> * <para> * </para> * </summary> * <returns> * an integer corresponding to the current RGB color of the LED * </returns> * <para> * On failure, throws an exception or returns <c>YColorLed.RGBCOLOR_INVALID</c>. * </para> */ public int get_rgbColor() { int res; if (_func == null) { throw new YoctoApiProxyException("No ColorLed connected"); } res = _func.get_rgbColor(); if (res == YAPI.INVALID_INT) { res = _RgbColor_INVALID; } return(res); }