Skip to content

Commit 50bd185

Browse files
author
heterodain
committed
GPIOピン変更
1 parent 01e35ca commit 50bd185

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/heterodain/mining/powercontroller/task/PvControllerTasks.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@ public void init() throws IOException {
7575
while (true) {
7676
try {
7777
Thread.sleep(3000);
78-
pcPowerSw = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, "PC_POWER_SW", PinState.LOW);
78+
pcPowerSw = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_25, "PC_POWER_SW", PinState.LOW);
7979
pcPowerSw.setShutdownOptions(true, PinState.LOW);
8080
break;
8181
} catch (Exception e) {
82-
log.warn("GPIO17(0)の初期化に失敗しました。リトライします。", e);
82+
log.warn("GPIO26(25)の初期化に失敗しました。リトライします。", e);
8383
}
8484
}
8585

8686
while (true) {
8787
try {
8888
Thread.sleep(3000);
89-
pcPowerStatus = gpio.provisionDigitalInputPin(RaspiPin.GPIO_27, "PC_POWER_STATUS",
89+
pcPowerStatus = gpio.provisionDigitalInputPin(RaspiPin.GPIO_00, "PC_POWER_STATUS",
9090
PinPullResistance.PULL_DOWN);
9191
break;
9292
} catch (Exception e) {
93-
log.warn("GPIO26(27)の初期化に失敗しました。リトライします。", e);
93+
log.warn("GPIO17(0)の初期化に失敗しました。リトライします。", e);
9494
}
9595
}
9696

0 commit comments

Comments
 (0)