Skip to content

Feature/swap buttons - #39

Closed
daniel-frenkel wants to merge 2 commits into
mainfrom
feature/swap-buttons
Closed

daniel-frenkel wants to merge 2 commits into
mainfrom
feature/swap-buttons

Conversation

@daniel-frenkel

Copy link
Copy Markdown
Member

No description provided.

daniel-frenkel and others added 2 commits July 30, 2026 08:31
For mirror-image installs (pull-rope on the left instead of the right) where
the unit sits flipped and the two buttons feel reversed. Default OFF keeps the
shipped layout (Button 1 = close, Button 2 = open); ON makes Button 1 open and
Button 2 close.

The handlers are now role-symmetric: each button reads btn_swap to decide
whether it is the close button (deferred single-tap close + 7-tap homing gesture)
or the open button (immediate open). So the 7-tap homing gesture always follows
the CLOSE button — Button 2 gains its own tap counter (b2_tap_count /
b2_last_tap_ms) and a b2_tap_commit script for when it closes. Stop-while-moving,
the two-button set-home combo, and homing itself are direction-agnostic and
unchanged.

Product-layer only; no core change, no OTA-asset change; backward-compatible
(default OFF = today's behaviour). Validated: `esphome config` valid and
main.cpp compiles clean (build reaches the known local esptool .bin break).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Rename platter-all-v1.2.1.3mf to platter-all-v1.2.1-Bambu.3mf to explicitly identify the Bambu variant, and add a new binary platter-all-v1.2.1-Prusa.3mf for the Prusa-specific 3MF. Files placed under hardware/plastics/v1.2.1.
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