pi4j-example-minimal icon indicating copy to clipboard operation
pi4j-example-minimal copied to clipboard

Question: DigitalOutput.newConfigBuilder build options

Open vallemar opened this issue 4 years ago • 0 comments

I'm following the beginning of this basic example and when I got to this line. I have the following doubts:

  • What properties are mandatory to declare on newConfigBuilder? I have tried to remove properties and the code does nothing, but it does not fail either, it is a bit confusing.
  • What is the provider? I have searched the documentation but I can not find anything. I have tried to put a random provider and I have the following error: com.pi4j.provider.exception.ProviderNotFoundException: Pi4J provider [pigpio-digital] could not be found. Please include this 'provider' JAR in the classpath. If the provider is mandatory and also expects a specific string, why is an enumeration not done or is it simply omitted?

Thank you!

vallemar avatar Oct 29 '21 17:10 vallemar