IDS camera added
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user