Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
# スタックチャン ファームウェア
[English](./README.md)
## 注意
* __AIスタックチャンの情報を見てここにたどり着いた方へ__ ここには求める情報がないかもしれません!「AIスタックチャン」は@robo8080が中心となって開発中のArduinoベースのアプリケーションです。
* https://github.com/robo8080/AI_StackChan2
* ファームウェアは現在も積極的に開発中です。内部の作りやAPIが大きく変わる可能性があります。
* 「Moddableの環境構築の手順が多くて大変」という課題に対して、現在[issue](https://github.com/stack-chan/stack-chan/issues/65)を立てて対応中です。環境構築でつまづいた方はフィードバックをぜひお寄せください。
* Arduino IDEになじみのある方は @mongonta0716 さんの[stack-chan-tester](https://github.com/mongonta0716/stack-chan-tester)もお試しください(PWMサーボのみ対応)。
## 特徴
* JavaScriptを使ったプログラミングが可能
* 複数のサーボモーター(Feetech、FUTABA、DYNAMIXEL、PWMサーボ)に対応
* クラウド音声合成(VOICEVOX、ElevenLabs)に対応
* ホストプログラムとユーザアプリケーション(MOD)が分離した設計。MODのみの書き換えは非常に高速なので、効率的に開発サイクルを回せます。
* [Webブラウザからのファームウェア書き込み](docs/flashing-firmware-web_ja.md)に対応
## 最初に使うコマンド
標準構成は M5StackChan CoreS3 です。
初めての場合は次の順で進めてください。
```console
$ npm i
$ npm run setup
$ npm run doctor
$ npm run flash
```
`npm run flash` は標準構成のホストをビルドして書き込みます。
Stack-chan RT やタカオ版 Core2 + SG90 では `npm run flash:stackchan_rt` または `npm run flash:takao_core2_sg90` を使います。
MOD の開発だけを繰り返す場合は `npm run mod -- mods/examples/look_around/manifest.json` のように MOD の manifest を指定します。
## ディレクトリ構成
- [host](./host/): ホストアプリケーションとファームウェア module のソースコードです。
- [mods](./mods/): MODのソースコードです。
- [scripts](./scripts/): スタックチャンの音声合成などに用いるスクリプトです。
- [typings](./typings/): TypeScriptの型定義ファイル(d.ts)です。
- ※スタックチャンのファームウェアは一部を除きTypeScriptで実装されているので別途型定義ファイルは必要ありませんが、Moddable SDKの新しめのモジュールは型定義ファイルが提供されていないため、それを補う用途で置いてあります。
## ドキュメント
- [環境構築](docs/getting-started_ja.md)
- [プログラムのビルドと書き込み](docs/flashing-firmware_ja.md)
- [API](docs/api_ja.md)
- [MOD](mods/README_ja.md)
- [Webブラウザからのファームウェア書き込み](docs/flashing-firmware-web_ja.md)
- [Webブラウザからの設定変更](docs/setting-preferences-web_ja.md)
f1c988c28This file is pinned to the selected release. Download the original to open it in your design tool.