# The pen, the buttons, the page sensors and the storyware page images ## What the hardware has (OBSERVED: JSK, a PAL unit opened; UMFR pp. 4-5) - **Five buttons**: a large red one and four small coloured ones (UMFR: "rouge, blanc, pourpre, vert et orange, dont l'emploi dépend du Logistoire"); the four small ones are laid out as directions (UMFR "Touches Directions"). PICODOC calls the four up, down, left, right and names their colours white, orange, blue and green; JSK's and UMFR's units have purple where PICODOC says blue (C4: colour by model, harmless). - **The pen** ("Stylo Magique"), tethered, with a switch in its tip that the game reads (PICODOC: bit 7 of $800003). JSK: "the game can detect the pen even when it's hovering slightly over the pad". - **Two sensing surfaces**: the drawing pad, and the area under the open storyware; each is a matrix on two column cables and one row cable to the main board (JSK). - **Six page sensors**: reflective opto-switches over six holes above the storyware; each page has a tab across its top that covers the holes of the pages before it, so turning pages uncovers one more sensor at a time; a book with fewer than six pages has a wider tab on its last-but-one page that covers two sensors (JSK). That is the thermometer code PICODOC gives ($00 closed, then $01, $03, $07, $0F, $1F, $3F). ## The register view (DOC: PICODOC) One virtual plane holds both surfaces: | | X | Y | | --- | --- | --- | | drawing pad | $03C-$17C | $1FC-$2F7 | | storyware | $03C-$17C | $2F8-$3F3 | So X has 321 steps across either surface and each surface has 252 steps of Y; a game tells pad from page by Y alone. Under MAME the idle pen reads X=$00E5, Y=$027F (on the pad), which falls inside these ranges (OBSERVED, tier 5). Unknown, and needed by a board: how the pen reads when it is lifted out of range (U10), whether hovering and touching differ in anything but the tip switch (U10), how often the 315-5640 updates the coordinates and whether a read can catch X and Y from different scans (U11), and what the page register's bits 6-7 hold (MAME returns $92 idle: C2). ## What the frontend has to offer A Pico needs three inputs no pad has: a position, a press, and the open page. - **Pen position**: the mouse or a touch, mapped onto the virtual plane. The frontend shows two panels, the drawing pad and the current storyware page, and the pointer's panel decides the Y band. - **Pen press**: the mouse button or the touch itself drives bit 7 of $800003. Hover is a pointer that is not pressed. - **Page**: keys (and on-screen arrows) step the page from closed to the book's last page; the board receives the thermometer code. Turning pages is what moves a Pico game from one activity to the next (UMPOOH: "To exit from the game, just turn the page"), so the control has to be prominent, not hidden in a menu. - **The five buttons**: four directions and red, as keys or a pad. The board itself sees only register values; everything above is the host's. ## The storyware page images The books are printed artwork: they are Sega's (and their licensors') and are never shipped, fetched or committed (charter, licences point 9). The player supplies their own scans, as with firmware. - MAME 0.285's software list knows page scans for three titles (`anpanwpk`, `poohcornsw`, `cookpico`), as PNG files named "0.png" or "0 - 0001.png" ... "0 - 0007.png", 25 to 31 MB each, identified by SHA-1 in a "pages" data area (CC0 list; OBSERVED in `reference/hash/pico.xml`). For the other 437 entries there is no reference scan. - Proposal: a host looks in `$PICO_PAGES_DIR//` for `cover.png` and `page1.png` ... `page6.png` (or MAME's names, recognised by their SHA-1), and draws a plain numbered placeholder when a page is missing. The pen's mapping onto a page uses the storyware band above, scaled to the image; the printed page's own margins are a per-title calibration that only a scan and the game together can give (U12). - The census carries no page images: none are in the No-Intro set, and none are kept. ## Other inputs met - **Keyboard Pico** (Japan, 1997): a keyboard that plugs into a socket on its own cartridge (JSK). So it is a cartridge-side device: the board's cartridge slot must let a cartridge carry its own I/O. How it is read is unknown (U13). - **PC Setsuzoku Kit Pico Town ni Dekakeyou!** (in the No-Intro set, 2 MB): a PC link kit; JSK's HPC-0009 box mentions Windows 95 connectivity by CD and cable. Unknown (U13). - **Early units' expansion connector and DE-9 "EXT" port** (JSK: "possibly for use with Pico peripherals such as the mouse, keyboard and fishing rod"). Unknown (U13); none needed for the first milestones.