/** * <summary> * Changes the current color of the LED, using an RGB color. * <para> * Encoding is done as follows: 0xRRGGBB. * </para> * <para> * </para> * </summary> * <param name="newval"> * an integer corresponding to the current color of the LED, using an RGB color * </param> * <para> * </para> * <returns> * <c>0</c> if the call succeeds. * </returns> * <para> * On failure, throws an exception or returns a negative error code. * </para> */ public int set_rgbColor(int newval) { if (_func == null) { throw new YoctoApiProxyException("No ColorLed connected"); } if (newval == _RgbColor_INVALID) { return(YAPI.SUCCESS); } return(_func.set_rgbColor(newval)); }