Skip to content

Commit

Permalink
Add shapes to screen mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
StijnOostdam committed Apr 1, 2021
1 parent 06ce880 commit d3a05f8
Show file tree
Hide file tree
Showing 5 changed files with 556 additions and 549 deletions.
9 changes: 5 additions & 4 deletions Winleafs.Api/Endpoints/ExternalControlEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,18 @@ public void SetPanelsColors(DeviceType deviceType, List<int> panelIds, List<Colo
switch (deviceType)
{
case DeviceType.Aurora:
SetAuroraColors(panelIds, colors);
SetExternalV1Colors(panelIds, colors);
break;
case DeviceType.Canvas:
SetCanvasColors(panelIds, colors);
case DeviceType.Shapes:
SetExternalV2Colors(panelIds, colors);
break;
default:
throw new NotImplementedException($"No {nameof(SetPanelsColors)} implemented for device type {deviceType}");
}
}

private void SetAuroraColors(List<int> panelIds, List<Color> colors)
private void SetExternalV1Colors(List<int> panelIds, List<Color> colors)
{
const int bytesPerpanel = 7;
//1 byte for the number of panels, then 7 bytes per panel
Expand All @@ -110,7 +111,7 @@ private void SetAuroraColors(List<int> panelIds, List<Color> colors)
SendUDPCommand(bytes);
}

private void SetCanvasColors(List<int> panelIds, List<Color> colors)
private void SetExternalV2Colors(List<int> panelIds, List<Color> colors)
{
const int bytesPerpanel = 8;
//2 bytes for the number of panels, then 8 bytes per panel
Expand Down
2 changes: 1 addition & 1 deletion Winleafs.Models/Models/UserSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Winleafs.Models.Models
public class UserSettings
{
public static readonly string APPLICATIONNAME = "Winleafs";
public static readonly string APPLICATIONVERSION = "v1.1.7";
public static readonly string APPLICATIONVERSION = "v1.1.8";

public static readonly string SettingsFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), APPLICATIONNAME);

Expand Down
2 changes: 1 addition & 1 deletion Winleafs.Setup/Product.wxs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" UpgradeCode="42ee9157-4382-4852-bed7-72b25fb2d0bf" Version="1.1.7" Language="1033" Name="Winleafs" Manufacturer="Stijn Oostdam">
<Product Id="*" UpgradeCode="42ee9157-4382-4852-bed7-72b25fb2d0bf" Version="1.1.8" Language="1033" Name="Winleafs" Manufacturer="Stijn Oostdam">
<Package Compressed="yes" />
<Media Id="1" Cabinet="myapplication.cab" EmbedCab="yes" />

Expand Down
Loading

0 comments on commit d3a05f8

Please sign in to comment.