コード例 #1
0
 public Sound(ADS1015 adc, ADS1015.Channel channel, ADS1015.Gain gain, UnitsNet.ElectricPotential volts)
 {
     this.adc     = adc;
     this.channel = channel;
     this.gain    = gain;
     this.volts   = volts;
 }
コード例 #2
0
 public Sound(ADS1015 adc, ADS1015.Channel channel, ADS1015.Gain gain, UnitsNet.ElectricPotential volts)
 {
     this.adc = adc;
     this.channel = channel;
     this.gain = gain;
     this.volts = volts;
 }
コード例 #3
0
 public Mcp970X(ADS1015 adc, ADS1015.Channel channel, ADS1015.Gain gain, int zeroDegreeOffset, double millivoltsPerDegree, int CalibrationOffset)
 {
     this.adc                 = adc;
     this.channel             = channel;
     this.gain                = gain;
     this.zeroDegreeOffset    = zeroDegreeOffset;
     this.millivoltsPerDegree = millivoltsPerDegree;
     this.CalibrationOffset   = CalibrationOffset;
 }
コード例 #4
0
 public Mcp970X(ADS1015 adc, ADS1015.Channel channel, ADS1015.Gain gain, int zeroDegreeOffset, double millivoltsPerDegree, int CalibrationOffset)
 {
     this.adc = adc;
     this.channel = channel;
     this.gain = gain;
     this.zeroDegreeOffset = zeroDegreeOffset;
     this.millivoltsPerDegree = millivoltsPerDegree;
     this.CalibrationOffset = CalibrationOffset;
 }
        public ExplorerHatPro(ADS1015.Gain gain = ADS1015.Gain.Volt5)
        {
            this.gain = gain;
            for (int l = 0; l < ColourCount; l++)    // turn off the leds at startup time
            {
                this.Light((Colour)l).Off();
            }

            InitTouch();
        }
コード例 #6
0
        public ExplorerHatPro(ADS1015.Gain gain = ADS1015.Gain.Volt5) {
            this.gain = gain;
            for (int l = 0; l < ColourCount; l++) {  // turn off the leds at startup time
                this.Light((Colour)l).Off();
            }

            InitTouch();
        }
コード例 #7
0
 public Mcp9701AE(ADS1015 adc, ADS1015.Channel channel, ADS1015.Gain gain) : base(adc, channel, gain, 400, 20.5, -6)
 {
 }
コード例 #8
0
 public Mcp9700A(ADS1015 adc, ADS1015.Channel channel, ADS1015.Gain gain) : base(adc, channel, gain, 530, 11, -2)
 {
 }