private async void GpioInit() { gpio = GpioController.GetDefault(); if (gpio == null) { return; } _pin = gpio.OpenPin(5); _dht = new Dht11(_pin, GpioPinDriveMode.Input); }
private async void GpioInit() { gpio = GpioController.GetDefault(); if (gpio == null) { return; } _pin = gpio.OpenPin(5); _dht = new Dht11(_pin, GpioPinDriveMode.Input); LCDDisplay = await InitializeDisplay(); Display = new displayI2C(LCDDisplay); Display.init(); }