//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);
 }
Exemplo n.º 2
0
 //Method to write the gain value to the control register
 private async void setGain(eTCS34725Gain gain)
 {
 }
Exemplo n.º 3
0
 //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);
 }
Exemplo n.º 4
0
        //Method to write the gain value to the control register
        private async void setGain(eTCS34725Gain gain)
        {

        }