diff --git a/pom.xml b/pom.xml index 9486281..1ce13b0 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ --demo - + pi4j.local 22 pi pi4j @@ -232,11 +232,7 @@ local-run - - - !pi.ipnumber - - + @@ -262,11 +258,7 @@ remote-run - - - pi.ipnumber - - + diff --git a/src/main/java/com/pi4j/catalog/Launcher.java b/src/main/java/com/pi4j/catalog/Launcher.java index e376bad..dfaf726 100644 --- a/src/main/java/com/pi4j/catalog/Launcher.java +++ b/src/main/java/com/pi4j/catalog/Launcher.java @@ -123,11 +123,11 @@ protected String[] getProviders() { } }) .add(PiGpioDigitalInputProvider.newInstance(piGpio), - PiGpioDigitalOutputProvider.newInstance(piGpio) //, -// PiGpioPwmProvider.newInstance(piGpio), -// PiGpioSerialProvider.newInstance(piGpio), -// PiGpioSpiProvider.newInstance(piGpio), -// LinuxFsI2CProvider.newInstance() + PiGpioDigitalOutputProvider.newInstance(piGpio), + PiGpioPwmProvider.newInstance(piGpio), + PiGpioSerialProvider.newInstance(piGpio), + PiGpioSpiProvider.newInstance(piGpio), + LinuxFsI2CProvider.newInstance() ) .build(); // Run the application diff --git a/src/main/java/com/pi4j/catalog/applications/Ads1115_App.java b/src/main/java/com/pi4j/catalog/applications/Ads1115_App.java index 9456027..e906d9d 100644 --- a/src/main/java/com/pi4j/catalog/applications/Ads1115_App.java +++ b/src/main/java/com/pi4j/catalog/applications/Ads1115_App.java @@ -47,7 +47,7 @@ private void continuousSlowRead(Context pi4j) { //start test System.out.println("Continuous slow read test started ..."); - Ads1115 ads1115 = new Ads1115(pi4j, 0x1, Ads1115.GAIN.GAIN_4_096V, Ads1115.ADDRESS.GND, 4); + Ads1115 ads1115 = new Ads1115(pi4j, 0x01, Ads1115.GAIN.GAIN_4_096V, Ads1115.ADDRESS.GND, 4); // Register event handlers to print a message on value change ads1115.setConsumerSlowReadChannel0((value) -> System.out.println("The actual value from channel 0 is: " + String.format("%.3f", value) + "voltage."));