From d50338ec35a7593c5b584ee6492d503c4d6ccced Mon Sep 17 00:00:00 2001 From: Andrew Knous Date: Thu, 23 May 2024 23:05:18 -0400 Subject: [PATCH] feat: adds isSnowbox config property --- .../PepperDashPluginSamsungMdcDisplay.csproj | 12 ++++++------ epi-display-samsung-mdc/SamsungMdc.cs | 6 ++++++ .../SamsungMdcConfigObject.cs | 3 +++ .../SamsungMdcControllerJoinMap.cs | 17 +++++++++++++++++ 4 files changed, 32 insertions(+), 6 deletions(-) diff --git a/epi-display-samsung-mdc/PepperDashPluginSamsungMdcDisplay.csproj b/epi-display-samsung-mdc/PepperDashPluginSamsungMdcDisplay.csproj index df8016d..90a7b4d 100644 --- a/epi-display-samsung-mdc/PepperDashPluginSamsungMdcDisplay.csproj +++ b/epi-display-samsung-mdc/PepperDashPluginSamsungMdcDisplay.csproj @@ -48,7 +48,7 @@ False - ..\..\..\..\ProgramData\Crestron\SDK\SSPDevices\Crestron.SimplSharpPro.DeviceSupport.dll + ..\..\..\..\..\..\ProgramData\Crestron\SDK\SSPDevices\Crestron.SimplSharpPro.DeviceSupport.dll False @@ -73,17 +73,17 @@ False - ..\..\..\..\ProgramData\Crestron\SDK\SimplSharpCustomAttributesInterface.dll + ..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpCustomAttributesInterface.dll False False - ..\..\..\..\ProgramData\Crestron\SDK\SimplSharpHelperInterface.dll + ..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpHelperInterface.dll False False - ..\..\..\..\ProgramData\Crestron\SDK\SimplSharpNewtonsoft.dll + ..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpNewtonsoft.dll False @@ -92,11 +92,11 @@ False - ..\..\..\..\ProgramData\Crestron\SDK\SimplSharpReflectionInterface.dll + ..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpReflectionInterface.dll False - ..\..\..\..\ProgramData\Crestron\SDK\SimplSharpTimerEventInterface.dll + ..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpTimerEventInterface.dll diff --git a/epi-display-samsung-mdc/SamsungMdc.cs b/epi-display-samsung-mdc/SamsungMdc.cs index 3ad8f96..841e30f 100644 --- a/epi-display-samsung-mdc/SamsungMdc.cs +++ b/epi-display-samsung-mdc/SamsungMdc.cs @@ -143,6 +143,7 @@ public void ListInputPorts() private bool _isMuted; private readonly bool _showVolumeControls; + private readonly bool _isSnowbox; private ActionIncrementer _volumeIncrementer; @@ -196,6 +197,7 @@ public SamsungMdcDisplayController(string key, string name, SamsungMdcDisplayPro _coolingTimeMs = _config.CoolingTimeMs; _warmingTimeMs = _config.WarmingTimeMs; _showVolumeControls = _config.ShowVolumeControls; + _isSnowbox = _config.IsSnowbox; _pollLedTemps = config.PollLedTemps; _customInputs = config.CustomInputs; @@ -323,6 +325,9 @@ public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, E // Show Volume Controls trilist.SetBool(joinMap.VolumeControlsVisibleFb.JoinNumber, _showVolumeControls); + // Is Snowbox + trilist.SetBool(joinMap.IsSnowboxFb.JoinNumber, _isSnowbox); + // LED temperature analog feedback CurrentLedTemperatureCelsiusFeedback.LinkInputSig( trilist.UShortInput[joinMap.LedTemperatureCelsius.JoinNumber]); @@ -349,6 +354,7 @@ public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, E InputNumberFeedback.FireUpdate(); trilist.SetBool(joinMap.VolumeControlsVisibleFb.JoinNumber, _showVolumeControls); + trilist.SetBool(joinMap.IsSnowboxFb.JoinNumber, _isSnowbox); VolumeLevelFeedback.FireUpdate(); MuteFeedback.FireUpdate(); diff --git a/epi-display-samsung-mdc/SamsungMdcConfigObject.cs b/epi-display-samsung-mdc/SamsungMdcConfigObject.cs index fbf72e0..6270c51 100644 --- a/epi-display-samsung-mdc/SamsungMdcConfigObject.cs +++ b/epi-display-samsung-mdc/SamsungMdcConfigObject.cs @@ -26,6 +26,9 @@ public class SamsungMdcDisplayPropertiesConfig [JsonProperty("showVolumeControls")] public bool ShowVolumeControls { get; set; } + [JsonProperty("isSnowbox")] + public bool IsSnowbox { get; set; } + [JsonProperty("pollLedTemps")] public bool PollLedTemps { get; set; } diff --git a/epi-display-samsung-mdc/SamsungMdcControllerJoinMap.cs b/epi-display-samsung-mdc/SamsungMdcControllerJoinMap.cs index 64708f7..b2972a3 100644 --- a/epi-display-samsung-mdc/SamsungMdcControllerJoinMap.cs +++ b/epi-display-samsung-mdc/SamsungMdcControllerJoinMap.cs @@ -74,6 +74,23 @@ public class SamsungDisplayControllerJoinMap : DisplayControllerJoinMap JoinType = eJoinType.Digital }); + /// + /// High when IsSnowbox is true + /// + [JoinName("IsSnowboxFb")] + public JoinDataComplete IsSnowboxFb = new JoinDataComplete( + new JoinData + { + JoinNumber = 41, + JoinSpan = 1 + }, + new JoinMetadata + { + Description = "Enable Visibility of Volume Controls", + JoinCapabilities = eJoinCapabilities.ToSIMPL, + JoinType = eJoinType.Digital + }); + /// /// Display controller join map