Skip to content

v0.6.0

Latest

Choose a tag to compare

@jeffory jeffory released this 27 Oct 12:49

PicoDeck v0.6.0

Bluetooth gamepads, a boot animation and a faster boot, character-grid graphics with shaders, settings rows for apps in the system menu, and steadier networking.

PicoDeck runs on a PicoCalc fitted with a Pimoroni Pico Plus 2 W. On v0.3.0 or later, System Update installs this release; from v0.2.0 or earlier, install picodeck.uf2 with BOOTSEL (see the v0.3.0 notes).

Gamepads

  • Bluetooth gamepads. Settings → Bluetooth turns the radio on, searches, pairs and forgets pads (Classic HID). A paired pad drives the gamepad alongside the keys, and its Home button opens and closes the system menu. Bluetooth stays off until you turn it on.
  • The bundled games use the gamepad. Snake, Minesweeper, Neurogram, Guinea Pig Run, the Platformer Demo and the C64 and GBC emulators read picocalc.gamepad instead of raw keys, so your bindings and a Bluetooth pad work in them. Enter confirms menus and end screens again, and hints name the d-pad keys you bound.

Boot

  • A boot animation. The splash now animates from first light while the system starts underneath it, and its last frame replaces the old static picture.
  • Faster to the launcher. The memory clear runs by DMA (about 0.55 s saved), the app scan and the keyboard's start-up wait run during the animation, and the boot no longer waits for a serial host when none is attached: about 3.1 s to the launcher on a warm reboot.

System menu

  • Settings rows for apps. picocalc.sys.addMenuOption(label, options, current, callback) adds a row whose value Left/Right/Enter change in place, like Brightness; the callback runs for each changed row after the menu closes. Rows share the app's four menu slots. See API System and Config.
  • The menu key toggles. Pressing Sym (or a pad's Home) while the menu is open closes it, also from inside Controls and the OS dialogs; a held key counts once.
  • System screens keep their font. Error, crash, update, screenshot and REPL screens and the system UI draw in the built-in font whatever font the app selected.

Graphics

  • picocalc.chargrid. A character grid for text-mode art and games, sized by any built-in or loaded font (the bundled Spleen 5x8 gives 64×40 cells), with your own glyphs, planes, the xterm-256 palette, UTF-8 text with word wrap, boxes, stamps, ramps with ordered dither, overlap-safe blit and scroll.
  • Grid shaders. picocalc.chargrid.shader compiles a small expression language to a VM that colours or fills whole grids per frame, with uniforms, arrays, layers and built-in noise.
  • picocalc.noise. Value noise and fBm, hash-compatible with ascii.rest.
  • Faster drawing. Fills and straight lines are faster; Lua apps' hot code stays at fixed cache positions, so unrelated firmware changes no longer move their frame rate. At 300 MHz the LCD bus now runs at 100 MHz (83 MHz at 250 MHz) instead of dropping to 75 MHz (#70).
  • Fixes: setPixels keeps columns aligned when clipped on the left; graphics.loadRegion also returns the width and height it produced and clamps without overflow; getInfo reads JPEGs whose first segment follows SOI directly; animator.new raises on an unknown easing name instead of falling back to linear.

Networking

  • Certificate pinning. tcp:peerFingerprint() returns the SHA-256 of the server's certificate, so an app can pin a self-signed server opened with setInsecure(true).
  • Long TLS streams. Every ready TLS record is decrypted per poll, so a long streamed reply (such as an LLM gateway's) no longer fails with "Connection lost" when memory runs short; a server's TLS close ends the connection cleanly, and data that arrives with the close is kept.
  • WiFi across clock changes. The radio's bus is held and retuned when an app or the video player changes the system clock, and kept quiet while it runs at that clock.

Audio and video

  • Video seeks. A seek switches the audio in place, with a dip under a millisecond instead of a gap (#20).
  • MP3. Decoding is faster (a granule at a time, with its hot state in SRAM) and decodes ahead while an app waits for its frame. Files with ID3v2 tags start and loop correctly.
  • Music and streams. play(0) loops background music; the file player starts with its buffer full and a seek while its stream is held drops the old audio.

Keyboard and reliability

  • The keyboard recovers. A silent keyboard controller is retried once a second, and the keyboard bus runs on its own hardware timer.
  • Timer pool leak fixed. The SDK's default alarm pool lost a slot whenever its two earliest alarms were cancelled together; once full, USB serial, the keyboard and WiFi stopped (#58).

For app developers

  • Lua: SDK calls are faster; fs.fsize(f) is registered; fs.isDir/stat/exists answer for the volume root; fb:getPixels/setPixels validate the rectangle before allocating.
  • Hidden apps. Apps under /apps/.test and /apps/.dev are not listed in the launcher but still start with the dev launch command; list all shows them and mv moves directories on the card.
  • Dev commands: prof (a sampling profiler, with tools/pc_prof.py), xipstat (cache and bus counters), alarmpool, mp3bench, and audiostat reports when the stream ran dry.
  • Simulator: host game controllers drive the gamepad, and the browser demo at picodeck.net/try reads browser gamepads.
  • Native API is still version 9.

Known issues

  • The key that closes the system menu can reach games that read held keys, such as Doom and TIC-80 (#60).
  • With Shift held, the keyboard sends nothing for Left, Right, Backspace and Space. This comes from the keyboard's own firmware.