public Connect ( LogicalDevice device, LogicalDevice pixelMapper, int opcChannel ) : void | ||
device | LogicalDevice | |
pixelMapper | LogicalDevice | |
opcChannel | int | |
리턴 | void |
public TpmTest(IEnumerable <string> args) { tpmSink.DataReceived.Subscribe(x => { switch (x.PacketNumber) { case 1: tpmPixelMapper.FromRGBByteArray(x.Data, 0, allPixels.SetPixel); break; case 2: tpmPixelMapper.FromRGBByteArray(x.Data, 160, allPixels.SetPixel); break; } if (x.PacketNumber == x.TotalPackets) { allPixels.ShowBuffer(); } }); opcOutput.Connect(allPixels, opcPixelMapper, 1); // WS2811 // acnOutput.Connect(new Physical.PixelRope(allPixels, 0, 200), 1, 1); buttonTest.Output.Subscribe(x => { if (x) { Exec.MasterEffect.Fade(allPixels.GlobalBrightnessControl, 1, 0, 2000); } else { Exec.MasterEffect.Fade(allPixels.GlobalBrightnessControl, 0, 1, 2000); } }); }