Repository navigation
Releases
M5SHARK R155 - Games Menu Blink Fix
R155 fixes the Games menu flicker. All R154 stability fixes are included.
What's New
Games menu no longer blinks
The games list was repainting the whole screen on every touch poll (~60 times per second), causing constant flicker. It now paints once when opened and only repaints after you exit a game back to the list.
Includes everything from R154
- BLE Spam / Sour Apple crash fixes (PR #1 + follow-ups)
- Clean BLE shutdown (no stale advertising pointer)
- Chameleon Ultra: clear error when disconnected
- SNAKE: food never spawns on the body, no reboot on long games
- REACTION: BACK during wait phase exits cleanly
Flashing (Windows PowerShell)
.\flash-full-fast.ps1 full flash (first install)
.\flash-full-fast.ps1 -Quick update only (from R150+)
.\flash-full-fast.ps1 -Port COM7 pick another port
Or download M5SHARK-R155-FLASH-KIT.zip for all files in one download.
Setup MCP
pip install pyserial mcp
Claude Desktop: see mcp-server/README.md (port auto-detected)
M5SHARK R154 - Stability Fixes
R154 fixes the crashes reported by the community on top of R153 (includes PR #1).
Fixes
Bluetooth / BLE
- BLE Spam crash (PR #1): the advertising object could be NULL when the BLE stack was initialized but no server existed - spam attacks crashed the device. Now acquired with a NULL guard.
- Sour Apple: same NULL-guard applied, and no more double BLE initialization.
- Clean BLE shutdown: the stale advertising pointer is cleared so leaving BLE tools quickly can't dereference freed memory.
Chameleon Ultra
- Sending a command while disconnected now logs a clear error on serial instead of failing silently.
Games
- SNAKE: food can no longer spawn on the snake's body; the body array moved off the task stack (no reboot on long games).
- REACTION: pressing BACK during the wait phase exits cleanly instead of being counted as TOO EARLY.
Flashing (Windows PowerShell)
.\flash-full-fast.ps1 full flash (first install)
.\flash-full-fast.ps1 -Quick update only (from R150+)
.\flash-full-fast.ps1 -Port COM7 pick another port
Or download M5SHARK-R154-FLASH-KIT.zip for all files in one download.
Setup MCP
pip install pyserial mcp
Claude Desktop: see mcp-server/README.md (port auto-detected)
M5SHARK R153 - Games + AI Game Creation
M5SHARK R153 with games and AI game creation via MCP.
What's New
Games (new GAMES menu)
- SNAKE: classic snake, tap screen edges to steer
- REACTION: 5 rounds, tap when screen turns green
- TIC TAC TOE: play against simple AI
- CUSTOM GAMES: AI creates quiz games via MCP
AI Game Creation
Claude or any AI assistant can create custom games directly on the device:
'Create a cybersecurity quiz game with 5 questions about WiFi security'
The AI generates the quiz, writes it to the SD card, and it appears in the Games menu.
MCP (62 total tools now)
All 58 previous tools plus:
- game_list: list custom games on SD
- game_create: AI generates and uploads a game
- game_play: start a game on the device screen
- game_delete: remove a custom game
Serial commands
game list - list games
game write <name> - upload game content
game play <index> - start a game
Setup MCP
pip install pyserial mcp
Claude Desktop: see mcp-server/README.md (port auto-detected)
Flashing
powershell -ExecutionPolicy Bypass -File ".\flash-full-fast.ps1" -Port COM6
Authorized testing only.