Add DPI28 (2.8") touchscreen display and touch input support#223
Open
3rdIteration wants to merge 4 commits intodevfrom
Open
Add DPI28 (2.8") touchscreen display and touch input support#2233rdIteration wants to merge 4 commits intodevfrom
3rdIteration wants to merge 4 commits intodevfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
dpi28_240x240display configuration to simplify switching between desktop and touchscreen modes.Description
src/seedsigner/hardware/DPI28.pythat scales 240x240 UI images to the 480x480 UI region, composes a 160px touch bar, and writes BGRA/RGB565 to/dev/fb0(withnumpy-accelerated and pure-Python fallbacks).src/seedsigner/hardware/touch.pyand a touch adaptersrc/seedsigner/hardware/touchbuttons.pythat expose aHardwareButtons-compatible interface plus tap detection, touch-bar events, and helpers likeget_last_tap_native_coords()andregister_buttons().src/seedsigner/hardware/displays/display_driver.pynow supportsdpi28,src/seedsigner/models/settings_definition.pyaddsdpi28_240x240to available display options, andsrc/seedsigner/gui/renderer.pyauto-detects framebuffer/touch hardware and setsSEEDSIGNER_DISPLAY/SEEDSIGNER_TOUCH.src/seedsigner/gui/screens/screen.py,seed_screens.py, andtools_screens.pynow select the input handler (touch vs GPIO), register button hit boxes, handle direct taps, manage touch-bar label updates viaRenderer.set_touch_bar_labels(), and hide/show the touch bar on screens where appropriate.src/seedsigner/gui/keyboard.pyaddingget_key_at_screen_coords()to support direct keyboard taps, andsrc/seedsigner/gui/toast.pyuses the correct input handler for dismiss/cancel behavior.Testing
Codex Task