Learn how to build a Game Controller and program the 14 buttons to mimic keyboard strokes or mouse movements for your favorite games.
Piperbot and Pip need to get back to the ship, but first, they need to find the controller that someone took off their rocket. As they stumble upon an arcade of games, they decide to play a few first and practice with the controllers. Help Piperbot and Pip have some fun before their journey!
Have an different version? Look for more information on the Support Page.
Troubleshooting Tips
Don’t forget the Duplicate Block feature!
When we code large programs, the Duplicate command is needed.
To access this feature, right-click on the block and select Duplicate.
Have you tested your wiring? (Step 12)
Click DIGITAL VIEW at the bottom of the screen, then click CONNECT. Choose your Pico device from the pop-up menu and click START.
The first thing you might notice when your Controller and Pico are running a program is that the GP2, GP3, and GP4 pins are flickering quite fast—this is the Pico asking the Controller for the button press information (GP3 and GP4) and the Controller sending it back (GP2).
When you press button 2 (UP) on your Controller, the LED on the Pico will turn on. When you let the button go, the LED will turn off.
If the Controller is working, that’s great! If not, this is a good time to review the steps to troubleshoot your wiring and code.
Is your Pico disconnecting after you test the Controller?
Check the program and wiring to make sure they are correct. The wires sent with your Game Controller might be different colors than depicted, which is fine. Follow the diagram to make the right connections.
Unplug your Pico, wait 5 seconds, and plug it back in.
Refresh your browser page.
Is your program not running smoothly? (Step 19)
Click DIGITAL VIEW at the bottom of the workspace. On the left side of the Digital View, there is a switch. Click the switch to turn off the Digital View.
How do I change to Mouse Mode?
First, click CONNECT and then click START. Your Controller will start in arrow key mode. Click button 11 to change it. When you do, the LED on the Pico should blink twice, indicating you are now in Mouse Mode. Try it out! Use the direction buttons (left, right, up, down) on your Controller to move the cursor on the screen. Use button 5 to left-click and use button 6 to right-click.
To return to arrow key mode, press button 11 again. The LED should blink once.
Our customer support specialists are on hand to ensure your implementation of Piper runs seamlessly. View Support Docs or Contact Support
Gaming EXPEDITION RESOURCES
Vocabulary Words
Console Personal computers built for gaming (e.g., PlayStation, Xbox, Nintendo Switch)
Modding Making "modifications" to how a game sounds, how it plays, looks, or functions,
usually by users
Graphic User Interface (GUI) A way to display information on the computer screen where the
user can use a mouse to click on buttons to do things.
Playtesting Playing through new builds to find bugs, ensure flow, and get new ideas to build on
Virtual reality (VR AComputer technology that makes a person feel like they are somewhere else,
requires players to wear a headset and use input devices to play games