Skip to content

Conversation

@elral
Copy link
Collaborator

@elral elral commented Oct 30, 2025

Description of changes

This PR adds the support for the Raspberry Pi Pico2.
Formfactor and pinout is the same as for version 2.
Advantage of Pico2 are the 5V tolerant I/O's.

elral added 30 commits August 16, 2024 06:36
@elral elral requested a review from DocMoebiuz as a code owner October 30, 2025 07:55
@github-actions
Copy link

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

Copy link

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

This PR adds support for the Raspberry Pi Pico2 board to the MobiFlight firmware. The Pico2 shares the same form factor and pinout as the original Raspberry Pi Pico but offers 5V tolerant I/O pins as a key advantage. The implementation introduces custom shift register wrapper functions and platform-specific serial number generation for the RP2350 chipset.

Key Changes:

  • Introduces custom shiftInData() and shiftOutData() wrapper functions to replace Arduino's built-in shift register functions with platform-specific timing adjustments
  • Adds Pico2-specific unique ID generation using the Pico SDK's pico_get_unique_board_id() function
  • Creates new PlatformIO build environment and board configuration files for the Raspberry Pi Pico2

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/MF_Modules/MFShiftData.h New header file declaring custom shift register wrapper functions
src/MF_Modules/MFShiftData.cpp Implementation of custom shift register functions with platform-specific timing
src/MF_OutputShifter/MFOutputShifter.cpp Updated to use shiftOutData() wrapper instead of Arduino's shiftOut()
src/MF_InputShifter/MFInputShifter.cpp Updated to use shiftInData() wrapper instead of Arduino's shiftIn()
src/Config.cpp Added RP2350-specific serial number generation using Pico SDK unique board ID
platformio.ini Added new build environment configuration for Raspberry Pi Pico2
_Boards/raspberrypi_pico2.board.json New board configuration with hardware IDs, module limits, and pin definitions
_Boards/raspberry_pico2.png Board image asset for Pico2

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

re-formatting acc. copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

@github-actions
Copy link

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

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