public StromPi3Settings() { AlarmSettings = new AlarmSettings(); BatteryHat = new BatteryHat(); StartStopSettings = new StartStopSettings(); VoltageMeter = new VoltageMeter(); }
public void SetShutDown(string sp3ShutdownEnable, int sp3ShutdownSeconds, int batteryLevelShutdown) { try { ShutdownSeconds = Convert.ToInt32(sp3ShutdownSeconds); } catch (Exception e) { Console.WriteLine(e); } ShutdownEnable = ConverterHelper.EnabledDisabledConverter(sp3ShutdownEnable, "sp3ShutdownEnable"); BatteryHat.SetShutdownLevel(batteryLevelShutdown); }