This commit is contained in:
parent
13a34e83d7
commit
178ab1eb74
12 changed files with 2967 additions and 562 deletions
|
@ -1,12 +1,13 @@
|
|||
using System.Threading;
|
||||
using ServicePoint;
|
||||
|
||||
var connection = new Connection("127.0.0.1:2342");
|
||||
connection.Send(Command.Clear());
|
||||
//var connection = new Connection("127.0.0.1:2342");
|
||||
var connection = new FakeConnection();
|
||||
connection.Send(new ClearCommand());
|
||||
|
||||
connection.Send(Command.Brightness(5));
|
||||
connection.Send(new GlobalBrightnessCommand(5));
|
||||
|
||||
connection.Send(Command.Utf8Data(0,0, CharGrid.Load("This is a test")));
|
||||
connection.Send(new CharGridCommand(0, 0, CharGrid.Load("This is a test")));
|
||||
|
||||
var pixels = Bitmap.NewMaxSized();
|
||||
for (ulong offset = 0; offset < pixels.Width(); offset++)
|
||||
|
@ -16,6 +17,6 @@ for (ulong offset = 0; offset < pixels.Width(); offset++)
|
|||
for (ulong y = 0; y < pixels.Height(); y++)
|
||||
pixels.Set((y + offset) % pixels.Width(), y, true);
|
||||
|
||||
connection.Send(Command.BitmapLinearWin(0, 0, pixels, CompressionCode.Lzma));
|
||||
connection.Send(new BitmapCommand(0, 0, pixels, CompressionCode.Lzma));
|
||||
Thread.Sleep(14);
|
||||
}
|
||||
|
|
|
@ -12,4 +12,8 @@
|
|||
<ProjectReference Include="../ServicePoint/ServicePoint.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<InvariantGlobalization>true</InvariantGlobalization>
|
||||
<PublishAot>true</PublishAot>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue