Class SmoothedInputDevice.Builder

  • Enclosing class:
    SmoothedInputDevice

    public static class SmoothedInputDevice.Builder
    extends Object
    Smoothed input device builder. Default values:
    pud:
    GpioPullUpDown.NONE
    activeHigh:
    set to false if pud == GpioPullUpDown.PULL_UP, otherwise true (assumes normally open wiring configuration)
    deviceFactory:
    DeviceFactoryHelper.getNativeDeviceFactory()
    threshold:
    1
    eventAge:
    20
    eventDetectPeriodMs:
    10
    Either a GPIO number or a PinInfo instance must be specified. Using a PinInfo instance allows input devices to be identified by either physical pin number or GPIO chip and line offset. The optional activeHigh parameter defaults assume a normally open wiring configuration, however, it can be overridden for normally closed configurations as well as scenarios where pud is GpioPullUpDown.NONE and an external pull up/down resistor is used.