Exemplo n.º 1
0
 public void SetTimingAndGain(IntegrationTimeMs timing, Gain gain)
 {
     Enable();
     Write((Register)((byte)Register.Timing | (byte)Command.Command), (byte)((byte)timing | (byte)gain));
     IntegrationTime = timing;
     SensorGain      = gain;
     Disable();
 }
Exemplo n.º 2
0
        public TaosTSL256x(
            I2C i2c,
            Address address = Address.AddressPinFloat,
            IntegrationTimeMs integrationTimeMs = IntegrationTimeMs.FastThirteenPointSeven,
            Gain gain = Gain.Gain16x)
        {
            I2c           = i2c;
            SensorAddress = address;

            SetTimingAndGain(integrationTimeMs, gain);
        }