public void TurnLedOff()
        {
            redLedPin.Write(GpioPinValue.Low);
            redLedPin.SetDriveMode(GpioPinDriveMode.Output);

            greenLedPin.Write(GpioPinValue.Low);
            greenLedPin.SetDriveMode(GpioPinDriveMode.Output);

            blueLedPin.Write(GpioPinValue.Low);
            blueLedPin.SetDriveMode(GpioPinDriveMode.Output);

            CurrentLedColor = LedColorEnum.None;
        }
 public void TurnMagentaOn()
 {
     SetMultipleColorsOn(true, false, true);
     CurrentLedColor = LedColorEnum.Magenta;
 }
 public void TurnWhiteOn()
 {
     SetMultipleColorsOn(true, true, true);
     CurrentLedColor = LedColorEnum.White;
 }
 public void TurnCyanOn()
 {
     SetMultipleColorsOn(false, true, true);
     CurrentLedColor = LedColorEnum.Cyan;
 }
 public void TurnYelowOn()
 {
     SetMultipleColorsOn(true, true, false);
     CurrentLedColor = LedColorEnum.Yelow;
 }
 public void TurnBlueOn()
 {
     SetMultipleColorsOn(false, false, true);
     CurrentLedColor = LedColorEnum.Blue;
 }
 public void TurnGreenOn()
 {
     SetMultipleColorsOn(false, true, false);
     CurrentLedColor = LedColorEnum.Green;
 }
        //private

        public void TurnRedOn()
        {
            SetMultipleColorsOn(true, false, false);
            CurrentLedColor = LedColorEnum.Red;
        }