Exemplo n.º 1
0
        public override async Task Start()
        {
            switch (SelectedSensor)
            {
            case "BMP280/BME280":
                Sensor = (await Bmp280.ProbeAsync(Board.I2c, true))[0];
                break;
            }

            Sensor.AutoUpdateWhenPropertyRead = false;
            OnPropertyChanged(nameof(Sensor));
        }