Loading files
2ad76b73eThis file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/stack-chan-374381865.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
2ad76b73eThis file is pinned to the selected release. Download the original to open it in your design tool.
# Webブラウザを使ったプログラムのビルドと書き込み
[English](./flashing-firmware-web.md)
Webブラウザからスタックチャンファームウェアを書き込むことができます。
Moddableなどの環境構築が不要なので気軽に試せます。
## 前提
* M5StackのUSBドライバがインストールされていること
* PCがWeb Serial APIに対応していること
## 手順
* PCにM5Stackを接続します
* https://stack-chan.github.io/stack-chan/web/flash/ にアクセスします

* セレクトボックスでM5Stackの種類を選択(M5Stack、M5Stack Fire、M5Stack Core2、M5Stack CoreS3)します
* 「Flash Stack-chan firmware」を選択します

* スタックチャンのシリアルポート(ttyUSB0やttyACM0などと表示されている)を選択


* 「INSTALL STACK-CHAN」→「INSTALL」を選択
* 2~3分待つ

* 書き込み完了!

## NOTE
工場出荷時の初期設定のため、サーボはSCS0009を使う設定になっています。
他の種類のサーボを使いたい場合は「[ブラウザからスタックチャンの設定を変更する](setting-preferences-web_ja.md)」を参照してください。