PicoMitePicoCalc firmware, 8.00.00b6
====================================

The first PicoMite firmware built for the PicoCalc. It needs a Pico module
with PSRAM: a Pimoroni Pico Plus 2 W or a Waveshare RP2350B-Plus-W (RP2350B,
16 MB of flash, 8 MB of PSRAM), which it tells apart by itself. On a module
without Wi-Fi it sets OPTION RADIO NONE and runs without the network.

It sets the PicoCalc up by itself, and these settings are fixed: the CPU at
436 MHz, the screen (its SPI at 72.7 MHz), the PSRAM, the keyboard (on the
system I2C at 400 kHz), the SD card. OPTION CPUSPEED, CPU SPEED and the
options for the others say "Fixed on the PicoMitePicoCalc"; OPTION LCDPANEL
CONSOLE and NOCONSOLE still work.

  README.txt                        this file
  PicoMitePicoCalcV8.00.00b6.uf2    the firmware
  PicoMite_App_User_Guide.pdf       the programs' guide: its chapter The
                                    PicoCalc covers this firmware
  sdcard/                           the programs made for the PicoCalc:
    micropython.app                 MicroPython, with a 320x320 display mode
    nes/nes.app                     the NES emulator
    quest/scummvm.app               ScummVM, its pointer on the keys
    licences/                       their licences


Installing
----------
1. Flash PicoMitePicoCalcV8.00.00b6.uf2 as any PicoMite firmware. The options
   and the A: drive start afresh with it: note your options, and copy off
   anything on A: that you want to keep, first.

2. For the other programs, download PicoMite_Programs-8.00.00b6.zip from the
   V8.00.00b6 release:
     https://github.com/UKTailwind/PicoMite/releases/tag/PicoMite-V8.00.00b6
   and copy its folders to the root of the PicoCalc's SD card with a PC:
   Doom, Heretic, Hexen, curl and sql run on the PicoCalc as they are. Leave
   out its bbc folder: the BBC Micro needs a screen 640 pixels across.

3. Then copy everything in this zip's sdcard folder to the root of the card,
   over the programs zip's micropython.app, nes/nes.app and quest/scummvm.app.

4. For curl and MicroPython's network, join your Wi-Fi with OPTION WIFI.

The micropython.app, nes.app and scummvm.app here are newer than those of the
8.00.00b6 programs zip, and so far have been tested only on the PicoCalc.
Until the next release, use the programs zip's copies on other PicoMites.

Copy a program to the PicoCalc only with a card reader or a transfer that
keeps its exact size, such as TFTP: XMODEM pads a file, and RUN then refuses
it.


The screen, the keyboard, the sound and the clock
-------------------------------------------------
A program has one display mode on the PicoCalc, MODE 5: the whole 320x320
screen in 256 colours. A smaller picture is shown in the middle, with black
above and below. There is no OPTION RESOLUTION to set.

This firmware has no USB host, so there is no USB keyboard, mouse or gamepad:
the programs use the PicoCalc's keyboard. The keys a program may ask for that
are not on it are typed like this:

  F6 to F10                 Shift with F1 to F5
  Home                      Shift+Tab
  End                       Shift+Del
  Insert                    Alt+I
  Page Up, Page Down        Shift+Up, Shift+Down
  F11, F12, Pause, PrtScr   not on the keyboard

To a program that reads which keys are held down, as the games do, Shift with
Up or Down is that arrow with Shift held, so that Shift runs in Doom, Heretic
and Hexen: Page Up and Page Down cannot be pressed there. The keyboard sends
nothing for Shift with Left or Right, so you cannot turn while you run.
Ctrl-C leaves a program.

The programs' sound comes from the PicoCalc's speakers.

The PicoCalc has no real-time clock, and HTTPS needs the right date. So once
its Wi-Fi has joined your network as it starts, the firmware sets the clock by
NTP, unless a real-time clock is configured or OPTION TIMEZONE is OFF.
OPTION TIMEZONE hours sets the hours from UTC, from -12 to 14 in whole
quarters of an hour (1, -3.5, 5.75...); it is kept, and is 0 (UTC) until set.
If the NTP fails, the PicoCalc says "NTP at boot:" and why, and goes on.


The programs on the PicoCalc
----------------------------
MicroPython   RUN "B:/micropython.app". Its own display mode, hdmi.RGB320S_8
              (320x320 in 256 colours, with a layer and an F buffer as
              RGB320_8 has), which it starts in the first time and saves: the
              console is 40 characters by 26 lines. RGB320_8 and RGB320 are
              shown in the middle of the screen; the 640x480 and 1024x600
              modes give an OSError. screen(hdmi.RGB320_8) changes the mode
              and saves it.

Doom, Heretic Their 320x200 picture in the middle of the screen. Doom runs at
and Hexen     30 frames a second in its timedemo at 436 MHz. In Heretic and
              Hexen, Insert is Alt+I, Home Shift+Tab and End Shift+Del; Page
              Up and Page Down (fly up, look up) cannot be pressed.

NES           Its 256x240 picture in the middle of the screen; the arrows or
              WASD, X (A), Z (B), Enter (Start) and Space (Select). Its menu
              (F12) and the way back to the cartridges (F11) need keys the
              PicoCalc has not: in a game Ctrl-C goes back to MMBasic, and
              RUN "nes.app" to the cartridges. Its cartridges are in /nes on
              the drive it is run from (8.00.00b6's looked in A:/nes).

ScummVM       Its 320x240 picture in the middle of the screen. With no mouse
              the arrow keys move the pointer, faster the longer they are
              held; Ctrl is the left button and Alt the right, and the arrows
              still choose in the list of games and the menus. As Ctrl and
              Alt are the buttons, Alt-1 to 9 (save) and Ctrl-1 to 9
              (restore) also press a button where the pointer is. Day of the
              Tentacle has been played on the PicoCalc with its speech and
              music.

curl, SQL     As on the PicoComputer 3. SQL's databases go on the SD card.


Licences and source code
------------------------
micropython.app   MicroPython (MIT), ulab (MIT), usqlite (MIT), SQLite
                  (public domain), micropython-lib's modules (MIT) and Mbed
                  TLS (Apache-2.0): licences/micropython-LICENSE.txt and the
                  others beside it. Its source is
                  github.com/UKTailwind/micropython, branch picomite
                  (ports/picomite).
nes.app           frank-nes: Copyright (c) 2026 Mikhail Matveev, GNU GPL
                  version 3 (licences/GPL-3.0.txt). QuickNES: GNU LGPL version
                  2.1 or later (licences/LGPL-2.1.txt). Its source is
                  github.com/rh1tech/frank-nes at the commit named in
                  apps/nes/make.py of the firmware's repository
                  (github.com/UKTailwind/PicoMite), with the patches and the
                  files in apps/nes.
scummvm.app       GNU GPL version 2 or later, with parts under other licences
                  as ScummVM's files say (licences/ScummVM-*). Its source is
                  FRANK Quest (github.com/rh1tech/frank-quest) at the commit
                  named in apps/scummvm/make.py of the firmware's repository,
                  with the files of that folder.
