2020-10-25 19:52:14 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace RGBController2.Boards
|
|
|
|
|
{
|
2020-11-08 13:08:52 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface for LED devices.
|
|
|
|
|
/// </summary>
|
2020-10-25 19:52:14 +00:00
|
|
|
|
public interface IBoard
|
|
|
|
|
{
|
2020-11-08 13:08:52 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The connection status of the device.
|
|
|
|
|
/// </summary>
|
2020-10-27 20:07:26 +00:00
|
|
|
|
public bool Connected { get; }
|
|
|
|
|
|
2020-10-25 19:52:14 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sets all of the LEDs to the chosen RGB colour.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="red">The red value</param>
|
|
|
|
|
/// <param name="green">The green value</param>
|
|
|
|
|
/// <param name="blue">The blue value</param>
|
|
|
|
|
public void SetAllLeds(byte red, byte green, byte blue)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Turns off all of the LEDs connected to the board.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public void TurnOffAllLeds()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|