Ejemplo n.º 1
0
 /// <summary>
 /// The constructor.
 /// </summary>
 public Leds(Robot _robot)
 {
     robot           = _robot;
     bits            = 0;
     power_colour    = 0;
     power_intensity = 0;
     Power           = new PowerLed(this);
 }
        public override void Dispose()
        {
            if (PowerLed != null)
            {
                PowerLed.Dispose();
                PowerLed = null;
            }

            if (StatusLed != null)
            {
                StatusLed.Dispose();
                StatusLed = null;
            }

            base.Dispose();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// The constructor.
 /// </summary>
 public Leds(Robot _robot)
 {
     robot = _robot;
     bits = 0;
     power_colour = 0;
     power_intensity = 0;
     Power = new PowerLed(this);
 }