// process event callbacks for analog listeners
for (GpioPinListener listener : pin.getListeners()) {
if (listener instanceof GpioPinListenerAnalog) {
((GpioPinListenerAnalog) listener)
.handleGpioPinAnalogValueChangeEvent(new GpioPinAnalogValueChangeEvent(
event.getSource(), pin, value));
}
}
}
}