Added circuit data to pool status message Sanitized byte signedness Added helper to get pool/spa on/off state from pool status Added simple color class Removed debug output Added basic status output to test program
22 lines
450 B
C#
22 lines
450 B
C#
namespace ScreenLogicConnect
|
|
{
|
|
public class RgbColor
|
|
{
|
|
public byte r { get; private set; }
|
|
public byte g { get; private set; }
|
|
public byte b { get; private set; }
|
|
|
|
public RgbColor(byte inR, byte inG, byte inB)
|
|
{
|
|
r = inR;
|
|
g = inG;
|
|
b = inB;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"R {r}, G {g}, B {b}";
|
|
}
|
|
}
|
|
}
|