RaspberryPi3Driver.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 override void AddCallbackForPinValueChangedEvent(int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Device.Gpio.PinChangeEventHandler callback);
override this.AddCallbackForPinValueChangedEvent : int * System.Device.Gpio.PinEventTypes * System.Device.Gpio.PinChangeEventHandler -> unit
Protected Friend Overrides 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.