move c# bindings into separate repository
This commit is contained in:
parent
2f7a2dfd62
commit
cbd0186fdc
100 changed files with 159 additions and 12738 deletions
19
ServicePoint.Example/Program.cs
Normal file
19
ServicePoint.Example/Program.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System.Threading;
|
||||
using ServicePoint;
|
||||
|
||||
var connection = new Connection("127.0.0.1:2342");
|
||||
connection.Send(Command.Clear());
|
||||
|
||||
connection.Send(Command.Brightness(5));
|
||||
|
||||
var pixels = Bitmap.NewMaxSized();
|
||||
for (ulong offset = 0; offset < ulong.MaxValue; offset++)
|
||||
{
|
||||
pixels.Fill(false);
|
||||
|
||||
for (ulong y = 0; y < pixels.Height(); y++)
|
||||
pixels.Set((y + offset) % pixels.Width(), y, true);
|
||||
|
||||
connection.Send(Command.BitmapLinearWin(0, 0, pixels));
|
||||
Thread.Sleep(14);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue