2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.gpio.internal.configuration;
15 import static org.openhab.binding.gpio.internal.GPIOBindingConstants.*;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * The {@link GPIOInputConfiguration} class contains fields mapping thing configuration parameters.
22 * @author Nils Bauer - Initial contribution
23 * @author Martin Dagarin - Pull Up/Down GPIO pin
26 public class GPIOInputConfiguration extends GPIOConfiguration {
28 * Time in ms to double check if value hasn't changed
30 public int debouncingTime = 10;
33 * Setup a pullup resistor on the GPIO pin
34 * OFF = PI_PUD_OFF, DOWN = PI_PUD_DOWN, UP = PI_PUD_UP
36 public String pullupdown = PUD_OFF;
39 * Sets the input detection type.
40 * EDGE_EITHER = PI_EITHER_EDGE, EDGE_FALLING = PI_FALLING_EDGE,
41 * EDGE_RISING = PI_RISING_EDGE
43 public String edgeMode = EDGE_EITHER;