/// <summary> /// Toogles the Backlight of the LCD to onn or off. /// </summary> /// <param name="parameter">1 for Backlight on or 0 for off</param> /// <returns>The provided parameter represented as a string.</returns> public string ToggleBacklight_LCD(int requestedParameter) { const byte ON = 0x01; const byte OFF = 0x00; if (requestedParameter.Equals(1)) { LCD.switchBacklightTo(ON); } else if (requestedParameter.Equals(0)) { LCD.switchBacklightTo(OFF); } return(requestedParameter.ToString()); }