Pi Zero gpio help
Posted: Mon Sep 05, 2016 2:02 pm
Hey all!
So I have connected my buttons to my pi zero and followed the steps listed in this guide
http://www.sudomod.com/forum/viewtopic.php?f=22&t=57
I am using hole 34 as the ground So I assume I need to edit the script to represent that but im not sure exactly how to do that.
This is whats in the script by default. How exactly do I write it to make pin 34 the GND.
{ 23, KEY_LEFT }, // Joystick (4 pins)
{ 0, KEY_RIGHT },
{ 1, KEY_DOWN },
{ 22, KEY_UP },
{ 12, KEY_E }, // START
{ 5, KEY_S }, // SELECT
{ 16, KEY_A }, // A
{ 6, KEY_B }, // B
{ 19, KEY_Y }, // Y
{ 26, KEY_X }, // X
{ 20, KEY_R }, // RT
{ 21, KEY_L }, // LT
{ -1, -1 } }; // END OF LIST, DO NOT CHANGE
Thank you all for the help
So I have connected my buttons to my pi zero and followed the steps listed in this guide
http://www.sudomod.com/forum/viewtopic.php?f=22&t=57
I am using hole 34 as the ground So I assume I need to edit the script to represent that but im not sure exactly how to do that.
This is whats in the script by default. How exactly do I write it to make pin 34 the GND.
{ 23, KEY_LEFT }, // Joystick (4 pins)
{ 0, KEY_RIGHT },
{ 1, KEY_DOWN },
{ 22, KEY_UP },
{ 12, KEY_E }, // START
{ 5, KEY_S }, // SELECT
{ 16, KEY_A }, // A
{ 6, KEY_B }, // B
{ 19, KEY_Y }, // Y
{ 26, KEY_X }, // X
{ 20, KEY_R }, // RT
{ 21, KEY_L }, // LT
{ -1, -1 } }; // END OF LIST, DO NOT CHANGE
Thank you all for the help