16 lines
No EOL
360 B
C#
16 lines
No EOL
360 B
C#
namespace GrovePi.Sensors
|
|
{
|
|
public interface ILed
|
|
{
|
|
SensorStatus CurrentState { get; }
|
|
ILed ChangeState(SensorStatus newState);
|
|
void AnalogWrite(byte value);
|
|
}
|
|
|
|
internal class Led : Sensor<ILed>, ILed
|
|
{
|
|
internal Led(IGrovePi device, Pin pin) : base(device, pin, PinMode.Output)
|
|
{
|
|
}
|
|
}
|
|
} |