Wired Connections
The diagram above depicts the connections for the power, audio and gamepad. Use this as a reference for wiring the components. Note, the length of wires and position of components are not exactly how the circuit will be - it’s just a diagram to show connections.
{ 18, KEY_LEFT }, // Left { 24, KEY_RIGHT }, // Right { 5, KEY_DOWN }, // Down { 6, KEY_UP }, // Up { 12, KEY_Z }, // A { 13, KEY_X }, // B { 16, KEY_A }, // X { 19, KEY_S }, // Y { 20, KEY_Q }, // L { 21, KEY_W }, // R { 17, KEY_ESC }, // TFT 17 { 22, KEY_LEFTCTRL }, // TFT 22 SELECT { 23, KEY_ENTER }, // TFT 23 START { 27, KEY_4 }, // TFT 27
GPIO Wired Connections
Follow the table above to reference which buttons to wire to the GPIO. The numbers on the left represent the corresponding GPIO number (NOT the pin number).
Gamepad Connections
When the PiTFT is flipped over, the connections are reversed. This diagram references the connections from the back of the PiTFT and Gamepad PCBs. This is most likely how you will wire the buttons to the pins on PiTFT. The colors match with each corresponding button and GPIO number.
Page last edited March 08, 2024
Text editor powered by tinymce.