Class Button.Builder

java.lang.Object
com.diozero.devices.Button.Builder
Enclosing class:
Button

public static class Button.Builder
extends Object
Button builder. Default values: 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 default value assumes a normally open wiring configuration, however, this 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.