Update FOX_40 IO config to match revised Luckfox Pico Max schematic#328
Merged
3rdIteration merged 2 commits intodevfrom Mar 9, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Luckfox Pico Max (FOX_40 / luckfox_40) hardware profile pin mappings to align runtime GPIO behavior and documentation with the revised schematic.
Changes:
- Remapped
FOX_40display control GPIOs (dc,rst,bl) inio_config.json. - Remapped
FOX_40button GPIO assignments inio_config.json. - Updated documentation and unit tests to match the new
FOX_40mappings.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/seedsigner/hardware/io_config.json |
Updates the FOX_40 display and button GPIO mappings to the revised schematic pins. |
docs/io_config.md |
Syncs the FOX_40 summary row to reflect the updated JSON mappings. |
tests/test_io_config_profiles.py |
Updates expected FOX_40 pin mappings so profile tests validate the new configuration. |
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
luckfox_40) schematic was revised and the repository's hardware pin mappings needed to reflect the new wiring for display control lines and button pins.src/seedsigner/hardware/io_config.jsonanddocs/io_config.mdconsistent is required by project guidelines for accurate runtime behavior and documentation.Description
src/seedsigner/hardware/io_config.jsontodc -> ["/dev/gpiochip2", 8],rst -> ["/dev/gpiochip1", 24], andbl -> ["/dev/gpiochip1", 25].src/seedsigner/hardware/io_config.jsontoKEY_UP -> ["/dev/gpiochip2", 9],KEY_DOWN -> ["/dev/gpiochip1", 28],KEY_LEFT -> ["/dev/gpiochip1", 19],KEY_RIGHT -> ["/dev/gpiochip1", 20],KEY_PRESS -> ["/dev/gpiochip1", 27],KEY1 -> ["/dev/gpiochip1", 23],KEY2 -> ["/dev/gpiochip1", 22], andKEY3 -> ["/dev/gpiochip1", 21].FOX_40summary row indocs/io_config.mdto match the JSON changes.tests/test_io_config_profiles.pyexpected values for theFOX_40profile so automated tests reflect the new mapping.Testing
python -m json.tool src/seedsigner/hardware/io_config.jsonto validate JSON formatting and it completed without error.pytest -q tests/test_io_config_profiles.pyand the test suite passed (all profile tests succeeded).Codex Task