Class GpioInputDevice<T extends DeviceEvent>

    • Constructor Detail

      • GpioInputDevice

        public GpioInputDevice​(PinInfo pinInfo)
        Parameters:
        pinInfo - PinInfo object for the GPIO
    • Method Detail

      • addListener

        public void addListener​(DeviceEventConsumer<T> listener)
        Add a new listener
        Parameters:
        listener - Callback instance
      • removeListener

        public void removeListener​(DeviceEventConsumer<T> listener)
        Remove a specific listener
        Parameters:
        listener - Callback instance to remove
      • removeAllListeners

        public void removeAllListeners()
        Remove all listeners
      • hasListeners

        public boolean hasListeners()
      • enableDeviceListener

        protected abstract void enableDeviceListener()
      • disableDeviceListener

        protected abstract void disableDeviceListener()