diff --git a/SampleSrc/speakerhat01.ino b/SampleSrc/speakerhat01.ino index e852c10..284b999 100644 --- a/SampleSrc/speakerhat01.ino +++ b/SampleSrc/speakerhat01.ino @@ -94,3 +94,4 @@ M5.Lcd.println("dacwrite"); M5.Lcd.println("Press BtnA/B"); } + diff --git a/run_IoTP.sh b/run_IoTP.sh index 3768689..d207b3d 100755 --- a/run_IoTP.sh +++ b/run_IoTP.sh @@ -6,5 +6,13 @@ else curl https://cit.istlab.info/IoTP/target/IoTP-${ver}-launcher.jar --output ~/IoTP-${ver}-launcher.jar fi +if type -p java >/dev/null; then + java -jar ../IoTP-${ver}-launcher.jar & +else + echo "Java is not installed." + echo "Javaがインストールされていません。ダウンロードページをひらきます。" + start https://learn.microsoft.com/ja-jp/java/openjdk/download#openjdk-21 + echo "Windows の場合、通常はx64 msi をインストールします。" + echo "インストール後、再度 ./run_IoTP.sh を実行してください。" +fi -java -jar ../IoTP-${ver}-launcher.jar &