Example #1
0
 private void InputChangedEventHandler(Input sender, PinEdge edge)
 {
     if (currentLevel != ReadLevel)
     {
         currentLevel = ReadLevel;
         Changed.Invoke(currentLevel);
     }
 }
Example #2
0
        private void ChangedEventHandler(Input sender, PinEdge changingEdge)
        {
            LedModel led = LedModel.Instance;

            led.State = (changingEdge == PinEdge.RisingEdge) ? "off" : "on";
        }
Example #3
0
 public PinEventHandlerArgs(GpioPin pin, PinEdge edge, bool bounced)
 {
     Pin     = pin;
     Edge    = edge;
     Bounced = bounced;
 }