-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
414 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'rpi-drivers' |
2 changes: 1 addition & 1 deletion
2
...itx/rpi/hardware/gpio/sensors/BMP180.java → ...ect/rpi/hardware/gpio/sensors/BMP180.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...itx/rpi/hardware/gpio/sensors/DS1621.java → ...ect/rpi/hardware/gpio/sensors/DS1621.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...itx/rpi/hardware/gpio/sensors/HCSR04.java → ...ect/rpi/hardware/gpio/sensors/HCSR04.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tx/rpi/hardware/gpio/sensors/HCSR501.java → ...ct/rpi/hardware/gpio/sensors/HCSR501.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tx/rpi/hardware/gpio/sensors/HTU21DF.java → ...ct/rpi/hardware/gpio/sensors/HTU21DF.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tx/rpi/hardware/gpio/sensors/MCP9808.java → ...ct/rpi/hardware/gpio/sensors/MCP9808.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...x/rpi/hardware/gpio/tests/BMP180Test.java → ...t/rpi/hardware/gpio/tests/BMP180Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...x/rpi/hardware/gpio/tests/ButtonTest.java → ...t/rpi/hardware/gpio/tests/ButtonTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...x/rpi/hardware/gpio/tests/DS1621Test.java → ...t/rpi/hardware/gpio/tests/DS1621Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...x/rpi/hardware/gpio/tests/HCSR04Test.java → ...t/rpi/hardware/gpio/tests/HCSR04Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../rpi/hardware/gpio/tests/HCSR501Test.java → .../rpi/hardware/gpio/tests/HCSR501Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...x/rpi/hardware/gpio/tests/HTU21DTest.java → ...t/rpi/hardware/gpio/tests/HTU21DTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rpi/hardware/gpio/tests/LEDBlinkTest.java → ...rpi/hardware/gpio/tests/LEDBlinkTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ava/itx/rpi/hardware/gpio/tests/Test.java → ...project/rpi/hardware/gpio/tests/Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
export CLASSPATH=pi4j-core-1.1.jar:gpio-drivers.jar | ||
|
||
#java -classpath $CLASSPATH one.microproject.rpi.hardware.gpio.tests.ButtonTest | ||
#java -classpath $CLASSPATH one.microproject.rpi.hardware.gpio.tests.LEDBlinkTest | ||
#java -classpath $CLASSPATH one.microproject.rpi.hardware.gpio.tests.BMP180Test | ||
#java -classpath $CLASSPATH one.microproject.rpi.hardware.gpio.tests.HTU21DTest | ||
#java -classpath $CLASSPATH one.microproject.rpi.hardware.gpio.tests.HCSR04Test | ||
#java -classpath $CLASSPATH one.microproject.rpi.hardware.gpio.tests.HCSR501Test | ||
#java -classpath $CLASSPATH one.microproject.rpi.hardware.gpio.tests.DS1621Test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
plugins { | ||
id 'java' | ||
id 'maven-publish' | ||
} | ||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
group = 'one.microproject.rpi.powercontroller' | ||
version = '1.0.0' | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.slf4j:slf4j-api:1.7.30' | ||
implementation 'org.slf4j:slf4j-simple:1.7.30' | ||
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.3' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.3' | ||
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.11.3' | ||
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
testLogging { | ||
events "passed", "skipped", "failed" | ||
} | ||
} | ||
|
Binary file added
BIN
+160 Bytes
.../build/classes/java/main/one/microproject/rpi/powercontroller/PowerControllerClient.class
Binary file not shown.
Binary file added
BIN
+383 Bytes
...classes/java/main/one/microproject/rpi/powercontroller/PowerControllerClientBuilder.class
Binary file not shown.
Binary file added
BIN
+1.47 KB
rpi-powercontroller-client/build/libs/rpi-powercontroller-client-1.0.0.jar
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
rpi-powercontroller-client/build/tmp/compileJava/source-classes-mapping.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
one/microproject/rpi/powercontroller/PowerControllerClientBuilder.java | ||
one.microproject.rpi.powercontroller.PowerControllerClientBuilder | ||
one/microproject/rpi/powercontroller/PowerControllerClient.java | ||
one.microproject.rpi.powercontroller.PowerControllerClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Manifest-Version: 1.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'rpi-powercontroller-client' |
4 changes: 4 additions & 0 deletions
4
...ller-client/src/main/java/one/microproject/rpi/powercontroller/PowerControllerClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package one.microproject.rpi.powercontroller; | ||
|
||
public interface PowerControllerClient { | ||
} |
4 changes: 4 additions & 0 deletions
4
...ient/src/main/java/one/microproject/rpi/powercontroller/PowerControllerClientBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package one.microproject.rpi.powercontroller; | ||
|
||
public class PowerControllerClientBuilder { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'rpi-powercontroller' |
6 changes: 0 additions & 6 deletions
6
rpi-powercontroller/src/main/java/itx/rpi/powercontroller/config/PortType.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
rpi-powercontroller/src/main/java/itx/rpi/powercontroller/services/SystemInfoService.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...owercontroller/src/main/java/itx/rpi/powercontroller/services/jobs/TaskEventListener.java
This file was deleted.
Oops, something went wrong.
56 changes: 28 additions & 28 deletions
56
...i/powercontroller/PowerControllerApp.java → ...i/powercontroller/PowerControllerApp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.