static void InitializeObjects() { AppConfigData config = new AppConfigData(); lcdScreen = new LcdScreen(config.LcdRsPinNumber, config.LcdEPinNumber, config.LcdData0PinNumber, config.LcdData1PinNumber, config.LcdData2PinNumber, config.LcdData3PinNumber, config.LcdData4PinNumber, config.LcdData5PinNumber, config.LcdData6PinNumber, config.LcdData7PinNumber ); alarm = new Alarm(new Diode(config.DiodePinNumber), new Buzzer(config.BuzzerPinNumber), new Button(config.ButtonPinNumber)); thermometer = new Thermometer(config.DevicesDirectoryPath, config.ThermometerAddress, config.ContentFileName); dhtSensor = new DHT(config.DHTSensorPinNumber); dhtData = new DHTData(); temperatureThreshold = config.TemperatureThreshold; }
public void LoadComplete() { isLoaded = true; LcdScreen.Invalidate(); }