Skip to content

0.21.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 13:06
· 272 commits to main since this release

Board Support:

  • Fri3d 2026: B/Y buttons are also delivered to apps as ord("B")/ord("Y") KEY events, while still doing NEXT/PREV focus navigation (like the fri3d 2024 badge and desktop SDL).

Frameworks:

  • localPTZtime: time zones with half-hour offsets east of UTC (India, Sri Lanka, Iran, Afghanistan, Nepal, central Australia) were an hour or more behind; explicit DST offsets are now read as POSIX defines them, so Dublin is no longer an hour ahead in winter.
  • time_zones: updated to IANA tz 2026e (Morocco on UTC+0, western Canada stays on daylight time).
  • qrdecode: faster scanning with bit-identical results (kept decoder, PSRAM only, in-place frame, cheaper finder/alignment scans), rounded finder patterns (#313), 32-bit overflow check, and errors that no longer skip the caller's exception handler.
  • Camera: stopping the camera twice no longer deletes the capture timer twice.
  • MposKeyboard: set_textarea() no longer stacks a show-keyboard handler per field switch.
  • secp256k1: Schnorr verification works in -O3 frozen builds (macOS desktop, web), so Nostr no longer drops every relay event.
  • SensorManager: IMU reads use a 20 ms I2C timeout, probe at most once per 5 s and no longer print tracebacks (#294).
  • WifiService: a scan that comes back empty right after a radio restart is retried 5 s later (#309), so auto-connect and the Wi-Fi app recover on P4/C6.
  • SharedPreferences: in-place changes to a nested dict or list are written by the next commit()/apply() (#315).

Builtin Apps:

  • Nostr Chat: NIP-17 private group chats (up to 10 members, optional subject, hashed room files); every message is also gift-wrapped to yourself; group sends yield between recipients with progress; new chats stay open; decrypted content is no longer logged; stored wraps are not unwrapped again.

Testing:

  • unittest: exceptions from setUp/tearDown/cleanups/class fixtures are reported as skips or errors instead of aborting the file; assert helpers raise AssertionError explicitly so they work in -O3 builds; updated to micropython-lib unittest 0.11.0 (smaller .mpy, default messages only built on failure); test_runner's self-check also covers self.fail().
  • test_graphical_notification_bar and test_osupdate: assertions that were swallowed by except Exception can now fail.
  • screen camera: a host tool verifies the physical display by SIFT-aligning a webcam view to the device framebuffer (NCC, sharpness and per-icon-cell metrics, focus sweep, pass/fail thresholds); available as scripts/mpos_screen_camera.py and MPOSController.screen_camera_*().

OS:

  • Displays (ESP32): flush-ready is signalled from C in the DMA-done ISR (lcd_bus.FlushReadyCallback), with safer stack handling for Python callbacks that still run there.
  • ESP32: skip LVGL passes when less than 9 KB of stack is left, fixing hard resets when an app starts from the REPL, mpremote or boot (render_guard).
  • binascii/base64: stop shadowing the C base64 functions with the O(n^2) Python copies (3000-byte round-trip 13.6 ms -> 0.026 ms on desktop); binascii.Error/ValueError and non-ASCII input now match CPython, and urlsafe_b64decode() is implemented.
  • Build: web builds leave desktop-run files out, run_web.sh passes "web" explicitly, deploy_web_pages.sh builds through build_mpos.sh, apply_patch no longer prompts, and the tinyusb ISR patch is applied after the component fetch.