Picocalc-extras: Bluetooth keyboard/mouse/gamepad, file picker, image decoders and more, for your own programs

picocalc-extras is a set of pieces for Pico SDK programs on the RP2350 PicoCalc, built alongside Blair Leduc’s picocalc-text-starter drivers. Each piece is a line or two of CMake to bring in, and all of it is MIT-licensed.

  • bluetooth/: a Bluetooth keyboard, mouse and gamepad (Pico 2 W), plus btpair to pair them. The keyboard’s keys come through the normal keyboard reads, so most programs need one line: btkbd_init().
  • picker/: a file picker with an optional banner and preview panel.
  • images/: JPEG, PNG and BMP decoders that fit a picture to a frame.
  • fatfs/: the SD card’s file system as one CMake library.
  • The shared clock (settime) and screenshot code.

Add it as a git submodule pinned to a release. The README has the quick start, and each piece’s README has a “Using it in a program” section. calcterm, Diamond, the picture viewer and the ShapoNES port all use it, so they’re worked examples to copy from.

New in 2.3: a Bluetooth keyboard and Wi-Fi at the same time, on the one radio. Set BTKBD_WITH_WIFI, start the radio yourself with your country, then call btkbd_init(). calcterm 0.5 does exactly that.

Release:

If you’ve written something another program could use, send it in rather than keeping a copy of your own; CONTRIBUTING.md says how.

Questions and requests welcome here.

picocalc-extras 2.6 and calcterm 0.6-alpha: SSH on the PicoCalc

picocalc-extras 2.6 adds ssh/: libssh2 with Mbed TLS for any program on a Pico 2 W. The handshake takes about a third of a second, and it uses about 80 KB of memory. There’s a small example, sshprobe, that logs in and runs one command.

calcterm 0.6-alpha uses it: put user@host in the host list and you have an encrypted terminal session. Host keys are checked, the password is asked for each time, and it’s been tested against Ubuntu and Windows 11’s own SSH server.

Also in 2.6: if you use Bluetooth and Wi-Fi together, a switched-off keyboard no longer stalls your network sessions. And screenshots now work without the shell, so RP2040 builds can have them too (@whimshot).

3 Likes