Add USB Serial GameCube Controller Example for Pico SDK#2
Open
stack-teapot wants to merge 1 commit intoloopj:mainfrom
Open
Add USB Serial GameCube Controller Example for Pico SDK#2stack-teapot wants to merge 1 commit intoloopj:mainfrom
stack-teapot wants to merge 1 commit intoloopj:mainfrom
Conversation
Author
|
Hi! I just wanted to say thank you for this project it really helped me with a remote GameCube playing project I’m working on. I appreciate all the work you’ve put into this! |
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.
Description
This PR adds a new example demonstrating how to use the Pico SDK with libjoybus to simulate a GameCube controller over USB serial. The example allows button presses to be sent from a USB serial terminal to the Raspberry Pi Pico, which then acts as a GameCube controller on RP2XXX devices.
Changes Included
examples/pico-sdk/gcn-controller-target/usb_serial/main.c— USB serial GameCube controller implementation.examples/pico-sdk/gcn-controller-target/usb_serial/CMakeLists.txt— Build configuration for Pico SDK and libjoybus.examples/pico-sdk/gcn-controller-target/usb_serial/.gitignore— Ignores the build directory.examples/pico-sdk/gcn-controller-target/usb_serial/README.txt— Documentation including build, flash, and usage instructions.Notes
build/) is ignored; users must have Pico SDK and libjoybus checked out locally.Usage
cmake -B build -DPICO_ENABLE_STDIO_USB=1 -DPICO_ENABLE_STDIO_UART=0 -DPICO_BOARD=pico2 -DPICO_PLATFORM=rp2350 . cmake --build build