Skip to content

Conversation

@takaokouji
Copy link

Summary

This PR aligns Microbit More extension blocks with the standard Microbit extension to ease the transition for users.

Changes

  • Updated labels for mbitMore.isButtonPressed and mbitMore.displayMatrix in Japanese and Japanese-Hiragana.
  • Added a new display block (opcode: display) which displays text with a fixed 120ms delay, matching the standard Microbit extension's behavior.
  • Implemented logic for the moved gesture in whenGesture. It now returns true if any gesture event has a new timestamp since the last check.
  • Added moved to the gestures menu and provided translations.

Verification

  • Lint passed.
  • Verified code logic for MOVED gesture and display block.

Fixes smalruby/smalruby3-develop#20

- Updated mbitMore.isButtonPressed and mbitMore.displayMatrix labels
- Added new 'display' block with fixed 120ms delay
- Implemented 'moved' gesture logic in whenGesture
- Added 'moved' to GESTURES_MENU and updated translations

Co-Authored-By: Gemini <noreply@google.com>
@takaokouji takaokouji merged commit 6e57d0d into develop Jan 14, 2026
1 check passed
@takaokouji takaokouji deleted the fix/issue-20-align-microbit-more-blocks branch January 14, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MicrobitMore拡張機能の命令ブロックをMicrobit拡張機能と合わせる

2 participants