pi4j-example-minimal
pi4j-example-minimal copied to clipboard
Question: DigitalOutput.newConfigBuilder build options
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!