Skip to content

Commit

Permalink
[Fix] Added GpioD digital input provider
Browse files Browse the repository at this point in the history
  • Loading branch information
eitch committed Feb 7, 2024
1 parent f79d2ed commit e9471a3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.pi4j.extension.Plugin;
import com.pi4j.extension.PluginService;
import com.pi4j.plugin.gpiod.provider.gpio.digital.GpioDDigitalInputProvider;
import com.pi4j.plugin.gpiod.provider.gpio.digital.GpioDDigitalOutputProvider;
import com.pi4j.provider.Provider;
import org.slf4j.Logger;
Expand Down Expand Up @@ -43,7 +44,6 @@ public class GpioDPlugin implements Plugin {
*/
public static final String DIGITAL_INPUT_PROVIDER_ID = ID + "-digital-input";


private Logger logger = LoggerFactory.getLogger(this.getClass());

/**
Expand All @@ -52,7 +52,8 @@ public class GpioDPlugin implements Plugin {
@Override
public void initialize(PluginService service) {
Provider[] providers = {
GpioDDigitalOutputProvider.newInstance()
GpioDDigitalOutputProvider.newInstance(),
GpioDDigitalInputProvider.newInstance()
};

service.register(providers);
Expand Down

0 comments on commit e9471a3

Please sign in to comment.