diff --git a/firmware/setting_unset_psram.sh b/firmware/setting_unset_psram.sh new file mode 100755 index 0000000..f196eb1 --- /dev/null +++ b/firmware/setting_unset_psram.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# 設定ファイルパスを取得 +SDKCONFIG="$HOME/.local/share/moddable/build/devices/esp32/targets/m5stack_cores3/sdkconfig/sdkconfig.defaults" + +# PSRAMを無効化 +sed -i 's/CONFIG_SPIRAM=y/CONFIG_SPIRAM=n/' $SDKCONFIG +cat $SDKCONFIG \ No newline at end of file diff --git a/firmware/setting.sh b/firmware/setting_xs-dev_env.sh old mode 100755 new mode 100644 similarity index 79% rename from firmware/setting.sh rename to firmware/setting_xs-dev_env.sh index fb4e895..26663b1 --- a/firmware/setting.sh +++ b/firmware/setting_xs-dev_env.sh @@ -1,11 +1,6 @@ #!/bin/sh -# SPIRAMを無効化 -SDKCONFIG="$HOME/.local/share/moddable/build/devices/esp32/targets/m5stack_cores3/sdkconfig/sdkconfig.defaults" -sed -i 's/CONFIG_SPIRAM=y/CONFIG_SPIRAM=n/' $SDKCONFIG -cat $SDKCONFIG - -# 追記する内容 +# 追記するコマンドを設定 XS_DEV_SH="source ~/.local/share/xs-dev-export.sh" # 現在のシェルを取得 @@ -34,4 +29,4 @@ if grep -Fxq "$XS_DEV_SH" "$CONFIG_FILE"; then else echo "$XS_DEV_SH" >> "$CONFIG_FILE" echo "The string '$XS_DEV_SH' has been added to $CONFIG_FILE." -fi +fi \ No newline at end of file