mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-10 02:05:08 +00:00
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
using Crestron.SimplSharpPro;
|
|
|
|
|
|
namespace PepperDash.Essentials.Core.Crestron_IO
|
|
{
|
|
/// <summary>
|
|
/// Represents a generic digital input deviced tied to a versiport
|
|
/// </summary>
|
|
public class GenericVersiportInputDevice
|
|
{
|
|
//Versiport InputPort {get; private set;}
|
|
|
|
//BoolFeedback InputStateFeedback {get; private set;}
|
|
|
|
//Func<bool> InputStateFeedbackFunc
|
|
//{
|
|
// get
|
|
// {
|
|
// return () => InputPort.DigitalIn;
|
|
// }
|
|
//}
|
|
|
|
//public GenericVersiportInputDevice(Versiport inputPort)
|
|
//{
|
|
// InputStateFeedback = new BoolFeedback(InputStateFeedbackFunc);
|
|
|
|
// InputPort = inputPort;
|
|
|
|
// InputPort.VersiportChange += new VersiportEventHandler(InputPort_VersiportChange);
|
|
|
|
//}
|
|
|
|
//void InputPort_VersiportChange(Versiport port, VersiportEventArgs args)
|
|
//{
|
|
// InputStateFeedback.FireUpdate();
|
|
//}
|
|
}
|
|
} |