public Nutcracker1Scene(IEnumerable<string> args)
{
testButton = new DigitalInput("Test");
allPixels = new VirtualPixel1D(60);
allPixels.SetAll(Color.White, 0);
var lorImport = new Import.LorImport(@"..\..\..\Test Files\HAUK~HALLOWEEN1.lms");
int pixelPosition = 0;
var circuits = lorImport.GetChannels.GetEnumerator();
while (true)
{
Controller.IChannelIdentity channelR, channelG, channelB;
if (!circuits.MoveNext())
break;
channelR = circuits.Current;
if (!circuits.MoveNext())
break;
channelG = circuits.Current;
if (!circuits.MoveNext())
break;
channelB = circuits.Current;
var pixel = lorImport.MapDevice(
channelR,
channelG,
channelB,
name => new SinglePixel(name, allPixels, pixelPosition));
log.Debug("Mapping channel R[{0}]/G[{1}]/B[{2}] to pixel {3} [{4}]",
channelR,
channelG,
channelB,
pixelPosition,
pixel.Name);
pixelPosition++;
}
lorTimeline = lorImport.CreateTimeline(null);
}