mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-23 17:34:47 +00:00
32 lines
808 B
C#
32 lines
808 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
using PepperDash.Essentials.Core;
|
|
|
|
namespace PepperDash.Essentials.Bridges
|
|
{
|
|
[Obsolete("Please use version PepperDash.Essentials.Core.Bridges")]
|
|
public class GenericRelayControllerJoinMap : JoinMapBase
|
|
{
|
|
#region Digitals
|
|
/// <summary>
|
|
/// Sets and reports the state of the relay (High = closed, Low = Open)
|
|
/// </summary>
|
|
public uint Relay { get; set; }
|
|
#endregion
|
|
|
|
public GenericRelayControllerJoinMap()
|
|
{
|
|
Relay = 1;
|
|
}
|
|
|
|
public override void OffsetJoinNumbers(uint joinStart)
|
|
{
|
|
var joinOffset = joinStart - 1;
|
|
|
|
Relay = Relay + joinOffset;
|
|
}
|
|
}
|
|
} |