mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 18:10:14 +01:00
20 lines
522 B
C#
20 lines
522 B
C#
using ServicePoint2;
|
|
|
|
using var connection = Connection.Open("127.0.0.1:2342");
|
|
|
|
connection.Send(Command.Clear());
|
|
connection.Send(Command.Brightness(128));
|
|
|
|
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;
|
|
|
|
connection.Send(Command.BitmapLinearWin(0, 0, pixels.Clone()));
|
|
Thread.Sleep(14);
|
|
}
|