Exemple #1
0
 public StromPi3Settings()
 {
     AlarmSettings     = new AlarmSettings();
     BatteryHat        = new BatteryHat();
     StartStopSettings = new StartStopSettings();
     VoltageMeter      = new VoltageMeter();
 }
Exemple #2
0
        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);
        }