Пример #1
0
        internal void Begin()
        {
            _i2cDevice.WriteByte((byte)Register.CHIPID);
            byte readSignature = _i2cDevice.ReadByte();

            if (readSignature != _deviceId)
            {
                throw new Exception($"Device ID {readSignature} is not the same as expected {_deviceId}. Please check you are using the right device.");
            }
            _initialized = true;

            //Read the coefficients table
            _calibrationData.ReadFromDevice(this);
        }