private void InputChangedEventHandler(Input sender, PinEdge edge) { if (currentLevel != ReadLevel) { currentLevel = ReadLevel; Changed.Invoke(currentLevel); } }
private void ChangedEventHandler(Input sender, PinEdge changingEdge) { LedModel led = LedModel.Instance; led.State = (changingEdge == PinEdge.RisingEdge) ? "off" : "on"; }
public PinEventHandlerArgs(GpioPin pin, PinEdge edge, bool bounced) { Pin = pin; Edge = edge; Bounced = bounced; }