-
Notifications
You must be signed in to change notification settings - Fork 72
Add Pico2 support #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add Pico2 support #368
Conversation
…FirmwareSource into RP2350_support
…FirmwareSource into RP2350_support
|
Board and firmware folder for this pull request: |
There was a problem hiding this 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()andshiftOutData()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.
|
Board and firmware folder for this pull request: |
re-formatting acc. copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Board and firmware folder for this pull request: |
|
Board and firmware folder for this pull request: |
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.