IDS camera added

This commit is contained in:
meelstorm
2025-07-23 13:25:19 +02:00
parent e761b24c95
commit 71d59df0cd
21 changed files with 411 additions and 24 deletions

View File

@@ -33,15 +33,12 @@ public class IOCommanderModule:IVisionBuilderModule
}
ConcurrentDictionary<int, bool> _pinStates = new ConcurrentDictionary<int, bool>();
public event Action<int, bool>? OnPinChangedEvent
{
add => _ioCommander!.OnPinChanged += value;
remove => _ioCommander!.OnPinChanged -= value;
}
public event Action<int, bool>? OnPinChangedEvent = delegate { };
private void OnPinChanged(int arg1, bool arg2)
{
_pinStates.TryAdd(arg1, arg2);
_debugViewService.SetInputPinStatus(arg1, arg2);
OnPinChangedEvent?.Invoke(arg1, arg2);
}
public void SetOutput(int pin, bool value)