/// <summary> /// PiJuiceConfig constructor /// </summary> /// <param name="piJuice">The PiJuice class</param> public PiJuiceConfig(PiJuice piJuice) { _piJuice = piJuice; for (int i = 0; i < 8; i++) { _usbMicroDpm.Add(ElectricPotential.FromVolts(4.2 + 0.8 * i)); } }
/// <summary> /// PiJuiceConfig constructor /// </summary> /// <param name="piJuice">The PiJuice class</param> public PiJuiceConfig(PiJuice piJuice) { _piJuice = piJuice; for (int i = 0; i < 8; i++) { _usbMicroDpm.Add(new ElectricPotential(4.2 + 0.8 * i, ElectricPotentialUnit.Volt)); } }
/// <summary> /// PiJuiceStatus constructor /// </summary> /// <param name="piJuice">The PiJuice class</param> public PiJuiceStatus(PiJuice piJuice) { _piJuice = piJuice; }
/// <summary> /// PiJuicePower constructor /// </summary> /// <param name="piJuice">The PiJuice class</param> public PiJuicePower(PiJuice piJuice) { _piJuice = piJuice; }