public MeadowApp() { Console.WriteLine("Initializing..."); // configure our SI7021 on the I2C Bus var i2cBus = Device.CreateI2cBus(); si7021 = new Si70xx(i2cBus); Console.WriteLine($"Chip Serial: {si7021.SerialNumber}"); // get an initial reading ReadConditions().Wait(); // start updating continuously si7021.StartUpdating(); }
public MeadowApp() { Console.WriteLine("Initializing..."); // configure our BME280 on the I2C Bus var i2c = Device.CreateI2cBus(); si7021 = new Si70xx( i2c ); // just for funsies. Console.WriteLine($"Chip Serial: {si7021.SerialNumber}"); //Thread.Sleep(1000); // get an initial reading ReadConditions().Wait(); // start updating continuously si7021.StartUpdating(); }