//Method to write the gain value to the control register
 private async void setGain(eTCS34725Gain gain)
 {
     if (!Init)
     {
         await begin();
     }
     _tcs34725Gain = gain;
     byte[] WriteBuffer = new byte[] { TCS34725_CONTROL | TCS34725_COMMAND_BIT,
                                       (byte)_tcs34725Gain };
     colorSensor.Write(WriteBuffer);
 }
Exemple #2
0
 //Method to write the gain value to the control register
 private async void setGain(eTCS34725Gain gain)
 {
 }
 //Method to write the gain value to the control register
 private async void setGain(eTCS34725Gain gain)
 {
     if (!Init) await begin();
     _tcs34725Gain = gain;
     byte[] WriteBuffer = new byte[] { TCS34725_CONTROL | TCS34725_COMMAND_BIT,
                                       (byte)_tcs34725Gain };
     colorSensor.Write(WriteBuffer);
 }
        //Method to write the gain value to the control register
        private async void setGain(eTCS34725Gain gain)
        {

        }