Skip to content

Commit

Permalink
PSRAM無効化とxs-devの環境設定更新スクリプトを分割
Browse files Browse the repository at this point in the history
  • Loading branch information
KuraZuzu committed Jan 7, 2025
1 parent e7733f5 commit 015d3cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 8 additions & 0 deletions firmware/setting_unset_psram.sh
Original file line number Diff line number Diff line change
@@ -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
9 changes: 2 additions & 7 deletions firmware/setting.sh → firmware/setting_xs-dev_env.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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"

# 現在のシェルを取得
Expand Down Expand Up @@ -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

0 comments on commit 015d3cc

Please sign in to comment.