Skip to content

Smart Pro kit 2b: firmware facts, profile, pad reader, sticks, board and image plumbing - #244

Merged
tarikbc merged 23 commits into
mainfrom
smartpro
Nov 22, 2026
Merged

tarikbc merged 23 commits into
mainfrom
smartpro

Conversation

@tarikbc

@tarikbc tarikbc commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

The first code for the TrimUI Smart Pro's test kit (kit 2b), from my plan in docs/superpowers/plans/2026-11-16-smartpro-kit-2b.md: Tasks 1 to 4 and Task 6's code. Its image builds (make -C plastron smartpro), but nothing here has run on a Smart Pro yet. The Brick and the Pixel 2 do not change.

Task 1: what the firmware says

I read TrimUI's Smart Pro firmware 1.1.1 (trimui_tg5040_20251128_v1.1.1.zip) on my Mac only: boot0, the device tree, U-Boot, the 4.9 kernel and its config, the start script and trimui_inputd. Nothing of it is in this PR but facts, in the spec's new appendix "the Smart Pro's firmware".

  • Memory: LPDDR4 at 792 MHz, not the Brick's LPDDR3, with boot0's values for the SPL (Task 6).
  • The device tree is the Brick's in nearly every node. The panel is 720x1280 at 69 MHz, on the same pins. U-Boot tells seven panels apart by their IDs: five also on the Brick, and two new ones (axs1832 and ft8756).
  • Pins: PD11 high for VCC-5V, PD14 and PD18 power the halves, PH3 is the rumble motor, PH19 the switch. The volume keys are on the LRADC, not pins.
  • TrimUI's own gamepad poses as an Xbox 360 pad, its keys by label. Its sticks rest at 2150 and run from 1050 to 2900 when they have no calibration of their own.
  • The Brick's closed files fit: the XR829's boot and sdd files are the same bytes as the Sonic Pad's.

Two changes came from it. sppad took a stick's first reach as three quarters of its centre, wider than TrimUI's factory travel, so a stick like that would have stopped near 68%. It is a third of the centre now, with a check from TrimUI's numbers. The profile's panel turn is 270, as TrimUI's kernel turns its framebuffer; only the quarter is used yet.

Task 6: the board, the boot loader, the kernel

The Smart Pro runs the Brick's system: the same plastron board files, with a few lines of its own.

  • DEVICE=smartpro builds: a device's build now names the platform layer it runs (backend), so the Smart Pro builds brick.c with its own profile. sppad is a new helper, built with the launcher and installed into the system (/usr/lib/zyperos/sppad), not the card, as the start script runs it before anything reads a button. The card folder is the build's device id now (.userdata/smartpro).
  • Its boot loader is the Brick's U-Boot with one patch: LPDDR4 at 792 MHz with boot0's values (mainline already has an LPDDR4 A133 board at 792 MHz with nearly the same ones), DCDC3 at 1.1 V as boot0 sets it for LPDDR4, and smartpro.dtb. Built and committed in board/smartpro/bootloader. The Brick's, built again from the changed script, is the same bytes as before.
  • Its kernel is the Brick's with two patches: the G2D and the framebuffer's turn back on (TrimUI's Smart Pro kernel turns its 1280x720 framebuffer onto the portrait panel the same way), and the Smart Pro's panels in brick_panel.c behind their own option (axs1832 and ft8756 from its U-Boot, its own nv3052 waits, no jd9168, otm1289a for an unknown panel). The Brick's driver does not change. Its device tree is the Brick's with the Smart Pro's values where they differ (scripts/make-smartpro-dts.py). Built: an 8.9 MB Image, smartpro.dtb and the modules.
  • configs/smartpro_defconfig is brick_defconfig with four lines of its own, and the Brick's post scripts take the board from BR2_ROOTFS_POST_SCRIPT_ARGS. The Smart Pro has its own card layout (SMARTBOOT, smartpro.dtb) and slot boot. The Brick's start script reads the device: on a Smart Pro it drives GPIO 107 (its 5 V) and starts sppad, and never loads brick-pad, which would take the halves' serial lines as buttons.
  • make check-smartpro-board holds the board to the Brick's but for its own lines, and the boot loader to boot0's memory values.
  • tools/release.sh --kit smartpro, plastron's make smartpro and release-smartpro, and ZyperOS Installer know the Smart Pro: its SMARTBOOT cards and images, with the Brick's closed files and update.
  • The card script's part for the Smart Pro is the Brick's device.sh (sd/smartpro/device.sh links to it), which takes its folder from the system's device line, as the start script does: .userdata/smartpro on a Smart Pro, as its launcher has it. tools/launch-start-check.sh runs it as the Smart Pro too.
  • I merged main in: the image's payload wants the shared DSperate core to be the build of this tree's patches, and that core is main's (v3.4.1).

Task 2: the profile and the 16:9 picture

  • src/device/smartpro_profile.c: "TrimUI Smart Pro", folder smartpro, boot label SMARTBOOT. The panel is 720x1280, turned, 109.8 x 61.8 mm, 16:9. Brightness is MENU+VOL, as on the Pixel 2 (it has no brightness keys), with MENU seen when it is let go. It has no handheld drawing yet (model NULL, never another's).
  • The words on SELECT, START and MENU stay words until the reference views (Task 5). The thermal zones are the Brick's, as its firmware shows.
  • brick.c: when a profile's panel is not 4:3, the host window is the panel's own size (1280x720). The 1024x768 picture goes into a texture, and each present scales it to 960x720 in the middle, with black bars at the sides. A video under the picture is drawn at the panel's resolution, as on the Pixel 2. 4:3 profiles keep the window as the screen, as before.
  • tools/devices-check.c: the Smart Pro's facts. The 4:3 rule now accepts 16:9 too, and checks that the panel's pixels match its aspect.

I made a contact sheet of home, MENU, the tutorial, the keyboard and both Controls pages, in light and dark, as the 1280x720 panel shows them. Nothing is cut.

Task 3: sppad, the buttons and sticks

Every Smart Pro control comes through two small controllers on serial ports (left /dev/ttyS4, right /dev/ttyS3, 19200 8N1). The frame format and the button bits come from Jpe230's Trimui_Inputd (GPL-3.0).

  • tools/sppad_frame.c (pure): finds frames in the byte stream wherever the reads cut it, and skips junk and stray 0xFF bytes. It maps the buttons to the GKD Pixel 2's key codes, as the Brick's brick-pad sends them since plastron's patch 0039, so the launcher and Diatom find the pad by its BTN_SOUTH, as they find the Brick's. Each stick axis learns its centre from the first readings and grows its range to the furthest reading seen, with a 10% dead zone. Its output is -32767..32767 with + right and down; the controllers' axes run the other way.
  • tools/sppad.c (Linux): drives GPIO 110 and 114 high, reads both ports, and sends one uinput gamepad, "Smart Pro Gamepad", with ABS_X/Y and ABS_RX/RY. If one half goes silent, the other keeps working, and the log says which half and when it speaks again. It compiles with -Werror for Linux and with the Brick's aarch64 cross compiler.
  • make check-sppad: frames cut at every byte, junk with stray heads, a frame cut short, 200 frames with junk between them in reads of 1 to 11 bytes (all found, in order), a press one frame long (down and up both sent), the key codes, the stick's centre and range, and a silent half.

I moved the centre and the dead zone into the reader rather than the launcher and Diatom, as my plan had it. Every program that reads the pad then gets the same stick, SDL games included.

Task 4: the sticks in use

  • src/stickpad.c: the left stick works as the d-pad on the launcher's screens. A direction is held from half the stick's travel and let go under a third. Only one axis counts at a time, the stronger one, with a margin so a corner push does not flip between up and right. brick.c holds a direction while either the key or the stick holds it, so the d-pad's repeat works as it does. The Brick's pad has no axes, so nothing changes there. make check-stickpad covers it, including all the way round the circle.
  • Diatom: a new port call, diatom_port_input_axes. The Brick port reads the pad's axes when it has them, and the Pixel 2 and desktop ports have none. Cores get the real left and right sticks as libretro analog. While RUN stick=dpad pushes the d-pad, that still wins on the left stick.

Checks

  • make check after the merge: 206 of 206 pass (check-sppad 258 checks, check-stickpad 254, check-devices 986, the new check-smartpro-board).
  • Built here: the Smart Pro's whole image (plastron/out/smartpro-sdcard.img, 1.16 GB), and in it I checked the boot loader at 128 KiB (the committed bytes), the GPT (SMARTBOOT, root A, state, root B), the kernel and smartpro.dtb (the Smart Pro builds, with the turn and the 720x1280 panel), /etc/zyperos/system's device smartpro, sppad (AArch64) in /usr/lib/zyperos, the start script's Smart Pro branch, the card's device.sh, the launcher's .userdata/smartpro, and the modules against the kernel's version. Also built: device-programs for the Smart Pro and the Brick with the Brick's toolchain. The installer's Rust tests pass (63).
  • make pixel-gate BASE=origin/main GATE='--lang en': 0 of 1258 frames changed (8 known unsteady shots, each differing from its own side's shot too).

Not done, and not tested

  • Nothing has run on a Smart Pro. The stick directions, which way the panel's quarter turn goes, the LRADC volume keys, and whether the halves need the 100 ms after power-on are all to confirm on one.
  • Its boot animation's frames are the Brick's 1024x768: on the Smart Pro's 1280x720 framebuffer it shows its background only, and so does the picture for missing closed files.
  • Task 5 (its drawing) and Task 7 (the kit) are still to do.

Update, 2026-11-20

  • Up to date with main (e9efca9): I merged main up to just before the Muse to MP4 rename, ran the rename script on this branch, took the rename commit as it is, then merged the rest of main. The plan and the spec left the repo with main's cleanup; they are on my Mac now.
  • The Smart Pro now gets what the Brick has: the Brick's core options (linked by the platform layer, as its kit file is), Screen Colors (the same TCON gamma table), a kit's GPU shaders and consoles, and Flash Drive on its framebuffer (usbdrive picked the Brick's page by the device's id, so a Smart Pro image would have built the Pixel 2's DRM page).
  • Its own boot animation and missing-files screen at 1280x720 (splash-fb showed its background alone on the Smart Pro), the screen in its own words in every language.
  • Diatom: the level bar's scale was the panel's width over 1024, 1.25 on the Smart Pro, and a scale over 1 drew no bar at all. It and On-Screen Stats take the panel's height over 768 now: 1 on the Brick, 0.9375 on the Smart Pro.
  • check-device-compile (the CI job devices) compiles the Smart Pro's launcher files and sppad too.
  • The 16:9 picture with black bars in "Task 2" above is replaced by a widescreen launcher in Smart Pro: a responsive, widescreen launcher #398, stacked on this one.

The TrimUI Smart Pro (TG5040) as the Brick's board with its own SPL,
device tree and panel, a smartpro profile, the 4:3 canvas on its 16:9
panel with side bars, and a small daemon for its controls, which come
from two serial controllers rather than pins. Tasks 1, 5 and 6 wait for
a static read of TrimUI's firmware; 2, 3 and 4 do not.
…e middle

The TrimUI Smart Pro (TG5040) as a profile for its test kit: "TrimUI Smart
Pro", folder smartpro, boot label SMARTBOOT, a 720x1280 panel mounted turned
(109.8 x 61.8 mm, 16:9), brightness on MENU+VOL as on the Pixel 2, MENU seen
when let go, no handheld drawing yet. The panel's turn, its thermal zones and
the marks on SELECT, START and MENU are kept as on the Brick's board until I
read its firmware.

brick.c: where a profile's panel is not 4:3, the host window is the panel
(1280x720) and the 1024x768 picture is drawn into a texture and scaled to
960x720 in the middle, black bars at each side, a video under it at the
panel's resolution. 4:3 profiles keep the window as the screen.

check-devices: the Smart Pro's facts, 16:9 allowed beside 4:3, and a panel's
pixels matching its aspect. make check 197/197; pixel-gate 0 of 1258 frames
changed.
Every control of the Smart Pro is on one of two small controllers, one in
each half of the body, on serial ports (left /dev/ttyS4, right /dev/ttyS3,
19200 8N1), sending 8-byte frames: 0xFF, a byte not read, the buttons, the
stick's X and Y high byte first, 0xFE (the format and the bits from Jpe230's
Trimui_Inputd, GPL-3.0).

tools/sppad_frame.c, with no device in it: frames found however the reads
cut them, junk and stray heads passed over; the buttons as the GKD Pixel 2's
key codes, as the Brick's brick-pad sends them (plastron patch 0039), so the
launcher and Diatom find the pad by its BTN_SOUTH as they find the Brick's;
a stick's axis with its centre learned from the first readings, its range
grown to the furthest reading seen, a 10% dead zone, turned the right way.

tools/sppad.c, Linux: both halves powered (GPIO 110 and 114 high), both ports
read, one uinput gamepad "Smart Pro Gamepad" with ABS_X/Y and ABS_RX/RY; a
half that goes silent is said in the log, and the other keeps working. It
compiles with -Werror for Linux and with the Brick's aarch64 compiler. Not
built into an image yet (the plan's Task 6), not run on a Smart Pro.

make check-sppad holds the pure part.
… the cores

src/stickpad.c: on the launcher's screens a direction is held once the stick
is half way to its end and let go under a third, along the further axis
only, kept through a wobble past 45 degrees, so a corner push does not flip
between up and right. brick.c reads ABS_X and ABS_Y from the pad where it has
them (the Smart Pro's, from sppad) and holds each direction while its key or
the stick holds it, so the d-pad's repeat works as it does. The Brick's pad
has no axes, so nothing changes there.

Diatom: diatom_port_input_axes, the handheld's own sticks in libretro's
range. The Brick port reads the pad's ABS_X/Y and ABS_RX/RY where it has
them; the Pixel 2 and desktop ports have none. Cores get the real left and
right sticks as libretro analog; while RUN stick=dpad pushes the d-pad, that
still wins on the left stick.

make check-stickpad holds the rule; check-sppad and check-stickpad have their
rows in docs/building.md. The Linux sides compile with no warnings against
the Brick's and the Pixel 2's sysroots. make check 199/199.
I read TrimUI's Smart Pro firmware 1.1.1 on the Mac (boot0, the device
tree, U-Boot, the kernel and its config, the start script and
trimui_inputd), never run and not shipped. The facts are in the spec's
new appendix: LPDDR4 at 792 MHz and boot0's values, a device tree that is
the Brick's in nearly every node, the panel's mode and how U-Boot tells
its seven panels apart (two of them not on the Brick), the pins, the
volume keys on the LRADC, TrimUI's own gamepad, and that the Brick's
closed files fit.

Two changes follow from it:

- sppad took a stick's first reach as three quarters of its centre, wider
  than TrimUI's factory travel (at rest 2150, from 1050 to 2900), so a
  stick like that would have stopped near 68%. It is a third of the centre
  now, with a check from TrimUI's numbers.
- The profile's panel turn is 270: TrimUI's kernel turns the 1280x720
  framebuffer by 3 onto the panel. Only the quarter is used yet.
A device's build now names its backend, the platform layer it runs
(src/device/<backend>.c and _hw.c): its own for the Pixel 2 and the Brick,
the Brick's for the Smart Pro, which shares its board. The Smart Pro's
build (src/device/smartpro_build.c) is the Brick's chip, Diatom port, card
layout and helpers, plus sppad, a new helper that plastron's zyperos
package installs into the system (/usr/lib/zyperos/sppad) rather than the
card, as the start script runs it before anything reads a button.

brick.c named its card folder .userdata/brick; it is the build's device id
now (ZYPEROS_DEVICE_ID from mk/cross.mk), and devices-check holds each
profile's folder to its id. The Brick's launcher still says .userdata/brick.

Checked with a cross build of device-programs for both devices with the
Brick's toolchain: the Smart Pro's launcher says .userdata/smartpro and
sppad builds for aarch64.
board/smartpro/u-boot/patches goes on top of the Brick's U-Boot patches:
trimui-smartpro_defconfig is the Brick's final one with the DRAM values
TrimUI's boot0 carries for the Smart Pro (LPDDR4 at 792 MHz, mainline's
SUNXI_DRAM_A133_LPDDR4 path, whose mode registers MR1-MR4 already are
boot0's), DCDC3 at 1.1 V (boot0 sets 1.1 V for LPDDR4 and 1.2 V for the
Brick's LPDDR3, on the AXP2202's DCDC3), and smartpro.dtb in the fallback
boot command; its U-Boot device tree is the Brick's with its own name. The
Brick's board code (its LDOs, the power key's tap, staying off on a
charger) is the AXP717 on the A133's, so it is the Smart Pro's too.

scripts/build-brick-bootloader.sh takes the board (brick when none);
make smartpro-bootloader builds board/smartpro/bootloader, committed as
the Brick's is. The Brick's built again from the changed script is the same
bytes as the committed one.

Not run on a Smart Pro: whether mainline's LPDDR4 setup takes these values
is for the first kit's card.
The Brick's kernel with two patches of its own (board/smartpro/linux):

- smartpro_defconfig is brick_defconfig with the G2D and the framebuffer's
  hardware turn back (TrimUI's Smart Pro kernel has SUNXI_G2D, G2D_ROTATE
  and SUNXI_DISP2_FB_HW_ROTATION_SUPPORT; the Brick's landscape panel needs
  neither), and the Smart Pro's set of panels.
- brick_panel.c tells the Smart Pro's panels apart as its U-Boot does
  (LCD_BRICK_PANEL_SMARTPRO): the five it shares with the Brick, the
  axs1832 and the ft8756 with their tables from TrimUI's Smart Pro U-Boot
  1.1.1, its own nv3052 waits, no jd9168, and the otm1289a's commands for a
  panel that answers none of the IDs. The Brick's driver is as it was.

Its device tree (board/smartpro/dts) is the Brick's with TrimUI's Smart Pro
values where the two differ: the panel's mode (720x1280 at 69 MHz), fb0 at
1280x720 turned by 270 degrees (disp_rotation_used, degree0 3, as TrimUI's
kernel turns it), its 5000 mAh battery and table, no Type-C detection, the
CPU's trip points and the headphone detect case. scripts/make-smartpro-dts.py
writes it from the Brick's and the builder's own copy of TrimUI's tree.

scripts/build-brick-kernel.sh takes the board (brick when none); make
smartpro-kernel builds into the volume's smartpro-kernel/images. Built: an
8.9 MB Image with the two panels' tables, smartpro.dtb and the modules.
Not run on a Smart Pro.
configs/smartpro_defconfig is brick_defconfig with its own device
(BR2_PLASTRON_DEVICE smartpro, which picks ZyperOS's smartpro build and
profile), its name, and BR2_ROOTFS_POST_SCRIPT_ARGS smartpro, which the
Brick's post-build.sh and post-image.sh now take as the board (brick when
none): its kernel and smartpro.dtb from make smartpro-kernel, its boot
loader and card from board/smartpro. Of its own there: genimage.cfg (the
Brick's card with SMARTBOOT and smartpro.dtb), boot-slot.cmd (smartpro.dtb),
the Brick's boot prelude as a link, and its package list, started from the
Brick's until its first release build makes its own (make
third-party-smartpro).

The Brick's packages take the board too: brick-kmods from the board's
kernel build, splash-fb on both (on the Smart Pro's 1280x720 framebuffer it
shows its background, as its frames are the Brick's 1024x768). The Brick's
start script reads the device from /etc/zyperos/system: on a Smart Pro it
drives GPIO 107 high (its 5 V, as TrimUI's start script does) and starts
sppad, and never loads brick-pad, which would take PD15 and PD19, the
halves' serial lines, as buttons.

make smartpro builds the system into output-smartpro, release-smartpro its
release (scripts/release.sh and build.sh know the device, its sources carry
its own patches beside the Brick's), and make check-smartpro-board holds the
board to the Brick's but for its own lines, and its boot loader to boot0's
memory values.
tools/release.sh --kit smartpro builds its kernel first, as for the Brick
(make smartpro-kernel), then plastron's release-smartpro.

ZyperOS Installer has a third device, the TrimUI Smart Pro: its cards and
images by their SMARTBOOT label, its local image from
ZYPEROS_SMARTPRO_IMAGE, and, as it runs the Brick's system
(Device::on_brick_system), the Brick's closed files and the Brick's update.
The page offers it, hidden until a release has its image, as the Brick's
is, and the fetching step no longer says the files are the Brick's.

res/update/min-system-smartpro: its oldest system, its first test kit's.
@tarikbc tarikbc changed the title Smart Pro kit 2b: profile, 16:9 picture, serial pad reader, sticks Smart Pro kit 2b: firmware facts, profile, pad reader, sticks, board and image plumbing Nov 16, 2026
The image build stopped in the payload: mk/payload.sh wants
sd/<device>/device.sh, and the Smart Pro had none. It runs the Brick's
system, so its device.sh is the Brick's (sd/smartpro/device.sh links
there), which now takes its folder from the system's device line
(/etc/zyperos/system), as /etc/init.d/brick does: .userdata/smartpro on a
Smart Pro, as its launcher has it, and .userdata/brick otherwise. The
tg3040 folder's rename stays the Brick's alone.

tools/launch-start-check.sh runs the Smart Pro too, with the system's
file under its scratch folder, and looks for each device's log in its own
folder, so a device.sh that names another's fails there.
check-smartpro-board holds the link.
The Smart Pro image's payload wants the DSperate core in the shared
vendor folder to be the build of this tree's patches, and that core is
main's (DSperate v3.4.1, #254). Conflicts were lists both sides added to:
the check lists, docs/building.md's table, plastron's .PHONY.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Deploying zyperos with  Cloudflare Pages  Cloudflare Pages

Latest commit: 870e117
Status: ✅  Deploy successful!
Preview URL: https://bf96b1f2.zyperos.pages.dev
Branch Preview URL: https://smartpro.zyperos.pages.dev

View logs

Conflicts:
- src/device/brick.c: main's screens' shader (bend_tex) and desk mode with
  the Smart Pro's wide panel: window_target() is screen_tex there, so the
  curve bends into the picture that show_scaled puts in the middle; a video
  under the screen goes through at the panel's pixels unless the curve is
  on, when it goes into the frame as on the Brick. The stick's d-pad beside
  main's rumble stub.
- Diatom: diatom_port_input_axes beside main's rumble scale; the stick's
  rule takes main's stick_dpad_now().
- mk/cross.mk: main's i18n tables and kit build with ZYDEV_BACKEND, so the
  Smart Pro links the Brick's layer and its kit file (check-kitbuild reads
  the backend now).
- plastron/Makefile: release-smartpro and smartpro need cores, as main's
  Brick targets do.
- installer: main's PICO-8 step for both devices on the Brick's system.
- docs/superpowers left the repo on main: the spec and the plan with it.

After it: smartpro_defconfig takes the Brick's three new lines (Flash
Drive, the equalizer, dav1d); check-launch-start's PICO-8 test gives the
Smart Pro the Brick's /boot.
# Conflicts:
#	Makefile
#	plastron/Makefile
The Smart Pro builds the Brick's platform layer with its own folder
(ZYPEROS_DEVICE_ID) and links its own profile, and tools/sppad.c is
Linux-only: the CI job devices compiles them now, as it does the Brick's.
The same A133P and PowerVR GE8300: its build links the Brick's core
options (by its platform layer, as its kit file), Screen Colors works on
the same TCON gamma table and display engine, and a kit turns on the GPU
shaders and consoles as the Brick's kit does. Its motor stays off until a
tester has felt it, as on the Brick. check-devices holds all of it.
usbdrive picked the Brick's framebuffer page by the device's id, so a Smart
Pro image would have built the Pixel 2's DRM page. It goes by the platform
layer now (ZYDEV_BACKEND), and the Smart Pro's card says its own name to
the computer.
The bar's scale was the panel's width over 1024, which is 1.25 on the Smart
Pro's 1280x720, and a scale over 1 draws no bar: volume and brightness in a
game showed nothing. It is the panel's height over 768 now, as the
launcher's canvas is, and the bar sits in the panel's middle. The Brick's
1024x768 is scale 1 and x 274 as before.
Its splash is the Brick's, and its frames were the Brick's 1024x768: on
the Smart Pro's 1280x720 framebuffer splash-fb showed its background
alone. make-splash-frames.py --smartpro makes smartpro/frames.bin, the
animation at the launcher's scale there (0.9375) in the middle of the
animation's own ground, which is what a 1368-unit canvas draws.
genclosed.py draws the missing-files screen on that canvas too, scaled to
1280x720, in the Smart Pro's own words (boot.closed_missing_smartpro, its
name instead of the Brick's, in every language). splash.mk installs the
Smart Pro's set on its image. The Brick's files are byte for byte as
before (check-genclosed).
The stats line was drawn at 1 pixel a unit, right on the Brick's
1024x768 and 6.7% larger than the launcher's own on the Smart Pro's
1280x720. It takes the panel's height over 768 now, as the level bar
does: 1 on the Brick, 0.9375 on the Smart Pro.
Main gave helper bit 7 to p8fx (your PICO-8's Shader and Border), so
sppad takes bit 8; both are in devicegen's table and cross.mk's helper
list, and the device files it writes are the same. Diatom's port has
both new calls, the Smart Pro's sticks (diatom_port_input_axes) and the
presses a poll saw (diatom_port_input_pressed); the Brick's poll reads
the sticks and counts the presses.

Main moved each check into a file of its own (mk/checks/NAME.mk), so
check-smartpro-board, check-sppad and check-stickpad have theirs and
docs/building.md's table is written again. The device-compile rule's
comment names both the Smart Pro's pads reader and portkeys whole.
@tarikbc
tarikbc marked this pull request as ready for review November 22, 2026 18:43
@tarikbc
tarikbc merged commit cc32dc1 into main Nov 22, 2026
10 checks passed
@tarikbc
tarikbc deleted the smartpro branch November 22, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant