servicepoint-tanks/DisplayCommands/IDisplayConnection.cs

25 lines
694 B
C#
Raw Normal View History

2024-04-12 14:29:26 +02:00
namespace DisplayCommands;
public interface IDisplayConnection
{
ValueTask SendClearAsync();
2024-04-12 14:29:26 +02:00
ValueTask SendCp437DataAsync(ushort x, ushort y, Cp437Grid grid);
ValueTask SendBrightnessAsync(byte brightness);
2024-04-13 14:08:51 +02:00
2024-04-12 18:32:10 +02:00
ValueTask SendCharBrightnessAsync(ushort x, ushort y, ByteGrid luma);
2024-04-12 14:29:26 +02:00
ValueTask SendHardResetAsync();
2024-04-12 14:29:26 +02:00
ValueTask SendFadeOutAsync(byte loops);
public ValueTask SendBitmapLinearWindowAsync(ushort x, ushort y, PixelGrid pixels);
/// <summary>
2024-04-13 14:08:51 +02:00
/// Returns the IPv4 address that is associated with the interface with which the display is reachable.
/// </summary>
/// <returns>IPv4 as text</returns>
public string GetLocalIPv4();
2024-04-13 14:08:51 +02:00
}