GpioDriver.AddCallbackForPinValueChangedEvent Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute un gestionnaire pour un événement de modification de la valeur de code pin.
protected internal abstract void AddCallbackForPinValueChangedEvent(int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Device.Gpio.PinChangeEventHandler callback);
abstract member AddCallbackForPinValueChangedEvent : int * System.Device.Gpio.PinEventTypes * System.Device.Gpio.PinChangeEventHandler -> unit
Protected Friend MustOverride Sub AddCallbackForPinValueChangedEvent (pinNumber As Integer, eventTypes As PinEventTypes, callback As PinChangeEventHandler)
Paramètres
- pinNumber
- Int32
Numéro de broche dans le schéma de numérotation logique du pilote.
- eventTypes
- PinEventTypes
Types d’événements à attendre.
- callback
- PinChangeEventHandler
Délégué qui définit la structure des rappels lorsqu’un événement de modification de valeur de code pin se produit.