예제 #1
0
 public static extern void SetMeasurementRate(IntPtr config, MeasurementRate rate);
예제 #2
0
        public void Configure(Gain gain = Gain._1x, IntegrationTime time = IntegrationTime._100ms, MeasurementRate rate = MeasurementRate._500ms)
        {
            int gainMask = gain == Gain._48x || gain == Gain._96x ? (int)gain + 2 : (int)gain;

            bridge.sendCommand(new byte[] { (byte)AMBIENT_LIGHT, CONFIG, (byte)(gainMask << 2), (byte)((int)time << 3 | (int)rate) });
        }
 public static extern void SetMeasurementRate(IntPtr config, MeasurementRate rate);
 public static extern void SetMeasurementRate(IntPtr board, MeasurementRate rate);