The handhelds are named for their variant: picocalc-lyra and cardputer-zero

M5Stack makes three Cardputers and only the Zero runs Linux; the PicoCalc
takes several cores and only the Luckfox Lyra runs MeshTerm. So the bare
names were ambiguous, and every reference to the two devices now carries
the variant: the --platform values and MESHTERM_PLATFORM, the Platform
constants (PICOCALC_LYRA, CARDPUTER_ZERO), their lane decks and every
screen's picocalc_lyra_lane / cardputer_zero_lane, the font inventories,
the lane chips' theme styles, the scripts/ folders, the two chrome test
files, and the docs and CLAUDE.md that name them.

There is no alias: --platform picocalc is refused with the three real
choices listed, rather than falling back to the desktop layout. The
PicoCalc is auto-detected from its device tree, so it needs nothing.
What names hardware or a user's data keeps its name: the PicoCalc
keyboard's input-device name, its battery's sysfs supply, and the serial
profile the Lyra setup script writes. .gitignore follows the firmware's
folder, and the changelog keeps the words each release used.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Opus 5.5 committed 2026-10-04 11:52:41 -04:00
1 parent a4619aa17d
commit b6e7cd5c16
104 files changed
+587 -542

No files matched your search

+22 -22
View File
@@ -1554,10 +1554,10 @@ def test_map_fkey_lane_names_its_three_destinations_and_the_zoom() -> None:
"""The map repurposes the nav keys, so its lane labels them — and offers no dead key."""
from meshterm.ui.map_render import MapMarker
from meshterm.ui.map_screen import MapScreen
from meshterm.ui.tui.fkeys import PICOCALC_DECK
from meshterm.ui.tui.fkeys import PICOCALC_LYRA_DECK
screen = MapScreen(_StubSession(80, 24), [MapMarker("A", 45.5, -73.6)], _StubSource(), 14)
lane = screen.picocalc_lane
lane = screen.picocalc_lyra_lane
# PgUp/PgDn zoom here and Home reframes — the shared paging labels would all be lies,
# and "end" is bound to nothing at all, so no jump rides the zoom rocker's Shift bank.
@@ -1570,20 +1570,20 @@ def test_map_fkey_lane_names_its_three_destinations_and_the_zoom() -> None:
"Zoom +",
]
assert (
PICOCALC_DECK.action_for(lane, 1) == "home"
and PICOCALC_DECK.action_for(lane, 5) == "pageup"
PICOCALC_LYRA_DECK.action_for(lane, 1) == "home"
and PICOCALC_LYRA_DECK.action_for(lane, 5) == "pageup"
)
assert (
PICOCALC_DECK.action_for(lane, 2) == "locate"
and PICOCALC_DECK.action_for(lane, 3) == "frame"
PICOCALC_LYRA_DECK.action_for(lane, 2) == "locate"
and PICOCALC_LYRA_DECK.action_for(lane, 3) == "frame"
)
# Two slots carry a Shift half along their own axis: You + homes in on us zoomed,
# Clear drops the find query. The other three Shift keys stay unbound.
assert (
PICOCALC_DECK.action_for(lane, 7) == "locate_zoom"
and PICOCALC_DECK.action_for(lane, 8) == "clear_find"
PICOCALC_LYRA_DECK.action_for(lane, 7) == "locate_zoom"
and PICOCALC_LYRA_DECK.action_for(lane, 8) == "clear_find"
)
assert all(PICOCALC_DECK.action_for(lane, n) is None for n in (6, 9, 10))
assert all(PICOCALC_LYRA_DECK.action_for(lane, n) is None for n in (6, 9, 10))
# Region and the zoom always act; the other two only where they'd land somewhere —
# and each Shift half gates with its own axis (no self marker, no query typed).
assert [pair.enabled for pair in lane] == [True, False, False, True, True]
@@ -1605,7 +1605,7 @@ def test_map_locate_recenters_on_our_own_node_at_the_current_zoom() -> None:
zoom = screen._viewport.zoom
screen.handle("left") # and pan away from wherever we are
assert screen.picocalc_lane[1].enabled is True # we're on the map, so You can act
assert screen.picocalc_lyra_lane[1].enabled is True # we're on the map, so You can act
screen.handle("locate")
assert screen._viewport.center_lat == pytest.approx(45.40)
assert screen._viewport.center_lon == pytest.approx(-73.50)
@@ -1616,12 +1616,12 @@ def test_map_locate_recenters_on_our_own_node_at_the_current_zoom() -> None:
away.render_body(80)
before = away._viewport
away.handle("locate")
assert away.picocalc_lane[1].enabled is False and away._viewport is before
assert away.picocalc_lyra_lane[1].enabled is False and away._viewport is before
def test_map_echoes_the_find_query_in_the_body_only_where_the_footer_is_gone() -> None:
"""The PicoCalc draws no hint line, so the query it carries moves into the body."""
from meshterm.platforms import PICOCALC, REGULAR, set_platform
from meshterm.platforms import PICOCALC_LYRA, REGULAR, set_platform
from meshterm.ui.attribution import CREDIT_SHORT
from meshterm.ui.map_render import MapMarker
from meshterm.ui.map_screen import MapScreen
@@ -1639,7 +1639,7 @@ def test_map_echoes_the_find_query_in_the_body_only_where_the_footer_is_gone() -
assert len(desktop.render_body(72)) == 20
assert "find: hil" in desktop.footer_hint
set_platform(PICOCALC)
set_platform(PICOCALC_LYRA)
device = MapScreen(_StubSession(53, 23), markers, _StubSource(), 14)
assert len(device.render_body(53)) == 23
for ch in "hil":
@@ -1700,18 +1700,18 @@ def test_map_frame_chip_lights_only_with_matches_to_frame() -> None:
screen.render_body(80)
before = screen._viewport
screen.handle("frame") # no query typed: nothing to frame, so nothing moves
assert screen.picocalc_lane[2].enabled is False and screen._viewport is before
assert screen.picocalc_lyra_lane[2].enabled is False and screen._viewport is before
for ch in "ali":
screen.handle("text", ch)
assert screen.picocalc_lane[2].enabled is True
assert screen.picocalc_lyra_lane[2].enabled is True
screen.handle("frame")
assert screen._viewport.center_lat == pytest.approx(45.40)
# A query nothing matches has no extent either — the chip goes back to dim.
for ch in "zzz":
screen.handle("text", ch)
assert screen._matches() == [] and screen.picocalc_lane[2].enabled is False
assert screen._matches() == [] and screen.picocalc_lyra_lane[2].enabled is False
def test_map_screen_find_filters_frames_and_clears() -> None:
@@ -2704,10 +2704,10 @@ def _mark(screen: MapScreen, cols: int = 80) -> str:
def _both_platforms():
"""The two platforms, restoring REGULAR afterwards — the credit differs across them."""
from meshterm.platforms import PICOCALC, REGULAR, set_platform
from meshterm.platforms import PICOCALC_LYRA, REGULAR, set_platform
try:
for platform in (REGULAR, PICOCALC):
for platform in (REGULAR, PICOCALC_LYRA):
set_platform(platform)
yield platform
finally:
@@ -2757,11 +2757,11 @@ def test_a_bordered_frame_sets_the_credit_in_its_bottom_rule_and_spares_the_draw
def test_a_frame_with_no_bottom_rule_stamps_the_drawing_instead() -> None:
"""The PicoCalc has a title bar and an F-key lane, and no rule to set a caption into."""
from meshterm.platforms import PICOCALC, REGULAR, set_platform
from meshterm.platforms import PICOCALC_LYRA, REGULAR, set_platform
from meshterm.ui import attribution
try:
set_platform(PICOCALC)
set_platform(PICOCALC_LYRA)
screen = _credited_map(53)
assert screen.bottom_caption == "" # nowhere to put it but the map
assert _last_row(screen, 53).endswith(attribution.CREDIT_FULL)
@@ -2823,11 +2823,11 @@ def test_the_bottom_rule_keeps_its_clip_arrows_when_a_caption_shares_it() -> Non
def test_the_find_query_and_the_credit_share_the_row_with_the_credit_kept_whole() -> None:
"""Where the F-key lane replaces the hint, the echo yields its right end to the credit."""
from meshterm.platforms import PICOCALC, REGULAR, set_platform
from meshterm.platforms import PICOCALC_LYRA, REGULAR, set_platform
from meshterm.ui import attribution
try:
set_platform(PICOCALC)
set_platform(PICOCALC_LYRA)
screen = _credited_map(53)
screen.render_body(53) # keys do nothing until the map has a viewport to move
screen.handle("right")