Skip to content

Update FOX_40 IO config to match revised Luckfox Pico Max schematic#328

Merged
3rdIteration merged 2 commits intodevfrom
codex/update-io_config-for-luckfox-pico-max
Mar 9, 2026
Merged

Update FOX_40 IO config to match revised Luckfox Pico Max schematic#328
3rdIteration merged 2 commits intodevfrom
codex/update-io_config-for-luckfox-pico-max

Conversation

@3rdIteration
Copy link
Copy Markdown
Owner

Motivation

  • The Luckfox Pico Max (FOX_40 / 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.
  • Keeping src/seedsigner/hardware/io_config.json and docs/io_config.md consistent is required by project guidelines for accurate runtime behavior and documentation.

Description

  • Remapped the FOX_40 display control lines in src/seedsigner/hardware/io_config.json to dc -> ["/dev/gpiochip2", 8], rst -> ["/dev/gpiochip1", 24], and bl -> ["/dev/gpiochip1", 25].
  • Updated FOX_40 button GPIO assignments in src/seedsigner/hardware/io_config.json to KEY_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], and KEY3 -> ["/dev/gpiochip1", 21].
  • Synchronized the FOX_40 summary row in docs/io_config.md to match the JSON changes.
  • Updated tests/test_io_config_profiles.py expected values for the FOX_40 profile so automated tests reflect the new mapping.

Testing

  • Ran python -m json.tool src/seedsigner/hardware/io_config.json to validate JSON formatting and it completed without error.
  • Executed pytest -q tests/test_io_config_profiles.py and the test suite passed (all profile tests succeeded).

Codex Task

Copilot AI review requested due to automatic review settings March 6, 2026 20:50
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_40 display control GPIOs (dc, rst, bl) in io_config.json.
  • Remapped FOX_40 button GPIO assignments in io_config.json.
  • Updated documentation and unit tests to match the new FOX_40 mappings.

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.

@3rdIteration 3rdIteration merged commit 3157840 into dev Mar 9, 2026
9 checks passed
@3rdIteration 3rdIteration deleted the codex/update-io_config-for-luckfox-pico-max branch March 9, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants