Skip to content

Commit

Permalink
anotherf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Feb 28, 2024
1 parent 10e50cb commit 43c6c00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Examples/ControllerExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
controllerInstance.Name = controllerInstance.ShortName = "Controller Example";

// Configure Ports
for (ushort i = 0; i < 32; i++)
controllerInstance.AddPortConfig(new PortConfig(i, false, true) { PortNumber = (byte)i, Type = EPortType.InputToArtNet | EPortType.ArtNet});
for (byte i = 1; i <= 32; i++)
controllerInstance.AddPortConfig(new PortConfig(i,new PortAddress (i), false, true) { PortNumber = (byte)i, Type = EPortType.InputToArtNet | EPortType.ArtNet});

// Add Instance
ArtNet.Instance.AddInstance(controllerInstance);
Expand Down
8 changes: 4 additions & 4 deletions Examples/NodeInputExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
nodeInstance.Name = nodeInstance.ShortName = "Node Input Example";

// Configure Input Ports
for (ushort i = 0; i < 4; i++)
nodeInstance.AddPortConfig(new PortConfig(i, false, true) { PortNumber = (byte)i, Type = EPortType.InputToArtNet | EPortType.ArtNet });
for (byte i = 1; i <= 4; i++)
nodeInstance.AddPortConfig(new PortConfig(i, new PortAddress(i), false, true) { PortNumber = (byte)i, Type = EPortType.InputToArtNet | EPortType.ArtNet });

for (ushort i = 10; i < 14; i++)
nodeInstance.AddPortConfig(new PortConfig(i, false, true) { PortNumber = (byte)i, Type = EPortType.InputToArtNet | EPortType.ArtNet });
for (byte i = 11; i <= 14; i++)
nodeInstance.AddPortConfig(new PortConfig(i, new PortAddress(i), false, true) { PortNumber = (byte)i, Type = EPortType.InputToArtNet | EPortType.ArtNet });

// Add Instance
ArtNet.Instance.AddInstance(nodeInstance);
Expand Down
4 changes: 2 additions & 2 deletions Examples/NodeOutputExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
nodeInstance.Name = nodeInstance.ShortName = "Node Output Example";

// Configure Output Ports
for (ushort i = 0; i < 32; i++)
nodeInstance.AddPortConfig(new PortConfig(i, true, false) { PortNumber = (byte)i, Type = EPortType.OutputFromArtNet, GoodOutput = EGoodOutput.ContiniuousOutput | EGoodOutput.DataTransmitted });
for (byte i = 1; i <= 32; i++)
nodeInstance.AddPortConfig(new PortConfig(i, new PortAddress(i), true, false) { PortNumber = (byte)i, Type = EPortType.OutputFromArtNet, GoodOutput = EGoodOutput.ContiniuousOutput | EGoodOutput.DataTransmitted });

// Listen for new Data
nodeInstance.DMXReceived += (sender, e) =>
Expand Down

0 comments on commit 43c6c00

Please # to comment.