Пример #1
0
 public Adafruit_ADS1015(I2CBus i2c, byte address)
     : base(i2c, address)
 {
     this.m_conversionDelay = ADS1015_CONVERSIONDELAY;
     this.m_bitShift        = 4;
     this.m_gain            = adsGain_t.GAIN_TWOTHIRDS; /* +/- 6.144V range (limited to VDD +0.3V max!) */
 }
Пример #2
0
        protected ADS1x15(byte address = ADS1x15_ADDRESS)
        {
            device = Pi.I2C.AddDevice(i2cAddress = address);

            Gain = adsGain_t.GAIN_TWOTHIRDS; /* +/- 6.144V range (limited to VDD +0.3V max!) */
        }
Пример #3
0
        /**************************************************************************/

        /*!
         *  @brief  Sets the gain and input voltage range
         */
        /**************************************************************************/

        protected void setGain(adsGain_t gain)
        {
            this.m_gain = gain;
        }