io commander
This commit is contained in:
20
VisionBuilder.UI.IOCommander/IOCommanderCommand.cs
Normal file
20
VisionBuilder.UI.IOCommander/IOCommanderCommand.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Inspectron.Settings.Attributes;
|
||||
|
||||
namespace VisionBuilder.UI.IOCommander;
|
||||
|
||||
public class IOCommanderCommand
|
||||
{
|
||||
public int Pin { get; set; }
|
||||
|
||||
[SettingDescription("Should be triggered when crossing from low to high or opposite?")]
|
||||
public bool OnHigh { get; set; }
|
||||
|
||||
public EGPIOCommand Command { get; set; }
|
||||
|
||||
|
||||
|
||||
override public string ToString()
|
||||
{
|
||||
return $"Pin: {Pin}, OnHigh: {OnHigh}, Command: {Command}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user