/// <summary> /// Gets the gain of the sensor. /// </summary> public RgbColorSensorGain GetGain() { byte control = Read8(REGISTER_CONTROL); RgbColorSensorGain result = (RgbColorSensorGain)control; return(result); }
/// <summary> /// Sets the gain of the sensor. /// </summary> public void SetGain(RgbColorSensorGain value) { Write8(REGISTER_CONTROL, (byte)value); }