feat: MicrobitMore拡張機能のファームウェア更新機能の実装#525
Merged
takaokouji merged 9 commits intodevelopfrom Jan 17, 2026
Merged
Conversation
- Update prepublish.mjs to download MicrobitMore hex (V2) during build - Create microbit-more-update.js for firmware writing (V2 only) - Update connection-modal.jsx to support firmware update for microbitMore - Update .gitignore to exclude downloaded hex files Co-Authored-By: Gemini <noreply@google.com>
13 tasks
- Update ErrorStep and UnavailableStep to show update button if onUpdatePeripheral is provided - Pass onUpdatePeripheral and onScanning props to these steps in ConnectionModalComponent - Ensures MicrobitMore users can reach update screen even if scanning doesn't timeout Co-Authored-By: Gemini <noreply@google.com>
…anslations - Implement universal hex support in microbit-more-update.js to correctly flash V2 devices - Fix a bug in microbit-update.js where the entire universal hex was being flashed - Add missing Japanese translations for firmware update instructions - Remove debug logs from microbit-more-update.js - Add transport open error handling with logging Co-Authored-By: Gemini <noreply@google.com>
- Update UpdatePeripheralStep to show specific success message for MicrobitMore - Add instruction to tilt micro:bit to complete the update process - Update ja.js and ja-Hira.js with specific success messages and instructions - Fix typos in Japanese translations Co-Authored-By: Gemini <noreply@google.com>
- Add .important-instruction style to connection-modal.css - Apply importantInstruction style to MicrobitMore tilt instruction in UpdatePeripheralStep Co-Authored-By: Gemini <noreply@google.com>
- Change 'デバイスをアップデート' to 'アップデート' in ja.js and ja-Hira.js - Clean up indentation and formatting in locale files - Fix lint errors (missing final newline) Co-Authored-By: Gemini <noreply@google.com>
- Add $ui-red to colors.css (hsla(0, 100%, 50%, 1)) - Use $ui-red for .important-instruction in connection-modal.css Co-Authored-By: Gemini <noreply@google.com>
- Wrap FormattedMessage in Box components to apply className - Ensure MicrobitMore instructions and success/fail messages are styled correctly Co-Authored-By: Gemini <noreply@google.com>
github-actions bot
pushed a commit
that referenced
this pull request
Jan 17, 2026
…bit-more-firmware-update feat: MicrobitMore拡張機能のファームウェア更新機能の実装
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Microbit拡張機能と同様に、MicrobitMore拡張機能でもファームウェア(.hexファイル)を自動的にダウンロードし、接続トラブル時に「周辺機器を更新 (Update Peripheral)」できるようにする機能を実装しました。
変更内容
scripts/prepublish.mjs: ビルド時に MicrobitMore の Hex をダウンロードし、URLファイルを生成する処理を追加。src/lib/microbit-more-update.js: MicrobitMore 専用の更新ロジックを実装。V2専用のHexであることを考慮し、V1デバイス検出時はエラーを表示するようにしました。src/containers/connection-modal.jsx:microbitMore拡張機能においてファームウェア更新UIを有効化し、適切な更新関数を呼び出すように修正。.gitignore: ダウンロードされた MicrobitMore の Hex を除外対象に追加。動作確認
node scripts/prepublish.mjsを実行し、正しくHexがダウンロードされ、src/generated/以下にファイルが生成されることを確認しました。