示例#1
0
        /// <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));
            }
        }
示例#2
0
        /// <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));
            }
        }
示例#3
0
 /// <summary>
 /// PiJuiceStatus constructor
 /// </summary>
 /// <param name="piJuice">The PiJuice class</param>
 public PiJuiceStatus(PiJuice piJuice)
 {
     _piJuice = piJuice;
 }
示例#4
0
 /// <summary>
 /// PiJuicePower constructor
 /// </summary>
 /// <param name="piJuice">The PiJuice class</param>
 public PiJuicePower(PiJuice piJuice)
 {
     _piJuice = piJuice;
 }