2024-05-13 00:17:40 +02:00
|
|
|
|
using ServicePoint2;
|
|
|
|
|
|
|
|
|
|
using var connection = Connection.Open("127.0.0.1:2342");
|
|
|
|
|
|
2024-05-15 20:34:51 +02:00
|
|
|
|
connection.Send(Command.Clear().IntoPacket());
|
|
|
|
|
connection.Send(Command.Brightness(128).IntoPacket());
|
2024-05-13 00:17:40 +02:00
|
|
|
|
|
|
|
|
|
using var pixels = PixelGrid.New(Constants.PixelWidth, Constants.PixelHeight);
|
|
|
|
|
|
|
|
|
|
for (var offset = 0; offset < int.MaxValue; offset++)
|
|
|
|
|
{
|
|
|
|
|
pixels.Fill(false);
|
|
|
|
|
|
|
|
|
|
for (var y = 0; y < pixels.Height; y++)
|
|
|
|
|
pixels[(y + offset) % Constants.PixelWidth, y] = true;
|
|
|
|
|
|
2024-05-15 20:34:51 +02:00
|
|
|
|
connection.Send(Command.BitmapLinearWin(0, 0, pixels.Clone()).IntoPacket());
|
2024-05-13 00:17:40 +02:00
|
|
|
|
Thread.Sleep(14);
|
|
|
|
|
}
|