mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 04:26:49 +00:00
Prep for merge into development for NYU deployment
This commit is contained in:
parent
f564a2f554
commit
b1742675c2
7 changed files with 107 additions and 5 deletions
|
|
@ -0,0 +1,43 @@
|
|||
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 device controlled by relays
|
||||
/// </summary>
|
||||
public class GenericRelayDevice
|
||||
{
|
||||
//Relay RelayOutput { get; private set; }
|
||||
|
||||
//public BoolFeedback RelayStateFeedback { get; private set; }
|
||||
|
||||
//Func<bool> RelayStateFeedbackFunc
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return () => RelayOutput.State;
|
||||
// }
|
||||
//}
|
||||
|
||||
//public GenericRelayDevice(Relay relay)
|
||||
//{
|
||||
// RelayStateFeedback = new BoolFeedback(RelayStateFeedbackFunc);
|
||||
|
||||
// if(relay.AvailableForUse)
|
||||
// RelayOutput = relay;
|
||||
|
||||
// RelayOutput.StateChange += new RelayEventHandler(RelayOutput_StateChange);
|
||||
//}
|
||||
|
||||
//void RelayOutput_StateChange(Relay relay, RelayEventArgs args)
|
||||
//{
|
||||
// RelayStateFeedback.FireUpdate();
|
||||
//}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue