Class DebouncedDigitalInputDevice

    • Constructor Detail

      • DebouncedDigitalInputDevice

        public DebouncedDigitalInputDevice​(int gpio,
                                           GpioPullUpDown pud,
                                           float debounceTime)
                                    throws RuntimeIOException
        Parameters:
        gpio - GPIO
        pud - Pull-up/down configuratoin
        debounceTime - Specifies the length of time (in seconds) that the component will ignore changes in state after an initial change. This defaults to 0 which indicates that no bounce compensation will be performed.
        Throws:
        RuntimeIOException - if an I/O error occurs
    • Method Detail

      • setDebounceTime

        public void setDebounceTime​(float debounceTime)