GpioPin.ValueChanged 이벤트

정의

GPIO(범용 I/O) 핀의 값이 변경되거나, 핀이 입력으로 구성되면 외부 자극으로 인해 또는 핀이 출력으로 구성되면 핀에 값이 기록되는 경우에 발생합니다.

// Register
event_token ValueChanged(TypedEventHandler<GpioPin, GpioPinValueChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void ValueChanged(event_token const* cookie) const;

// Revoke with event_revoker
GpioPin::ValueChanged_revoker ValueChanged(auto_revoke_t, TypedEventHandler<GpioPin, GpioPinValueChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GpioPin,GpioPinValueChangedEventArgs> ValueChanged;
function onValueChanged(eventArgs) { /* Your code */ }
gpioPin.addEventListener("valuechanged", onValueChanged);
gpioPin.removeEventListener("valuechanged", onValueChanged);
- or -
gpioPin.onvaluechanged = onValueChanged;
Public Custom Event ValueChanged As TypedEventHandler(Of GpioPin, GpioPinValueChangedEventArgs) 

이벤트 유형

Windows 요구 사항

앱 기능
lowLevel

적용 대상

추가 정보