]> git.basschouten.com Git - openhab-addons.git/blob
3121a348cfb89b879598f5f5e2628dcaec7a2988
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.gpio.internal.configuration;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link GPIOInputConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Nils Bauer - Initial contribution
21  * @author Martin Dagarin - Pull Up/Down GPIO pin
22  */
23 @NonNullByDefault
24 public class GPIOInputConfiguration extends GPIOConfiguration {
25     /**
26      * Time in ms to double check if value hasn't changed
27      */
28     public int debouncingTime = 10;
29
30     /**
31      * Setup a pullup resistor on the GPIO pin
32      * OFF = PI_PUD_OFF, DOWN = PI_PUD_DOWN, UP = PI_PUD_UP
33      */
34     public String pullupdown = "OFF";
35 }