I2c button controls

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

I2c button controls

Post by erik_gee » Thu Dec 14, 2017 2:47 am

I was wondering if anyone has written any code for the i2c control board that kitschbent has? I've used the search and found someone who made something for Arduino , but I was hoping to see if anyone has worked with connecting it straight to the pi? Admittedly I'm more of a hardware guy than a software , so my abilities are lacking a bit here to do it myself. Any help is appreciated !
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: I2c button controls

Post by VeteranGamer » Thu Dec 14, 2017 3:11 am

erik_gee wrote:
Thu Dec 14, 2017 2:47 am
I was wondering if anyone has written any code for the i2c control board that kitschbent has? I've used the search and found someone who made something for Arduino , but I was hoping to see if anyone has worked with connecting it straight to the pi? Admittedly I'm more of a hardware guy than a software , so my abilities are lacking a bit here to do it myself. Any help is appreciated !
not sure if you came across these.....


https://github.com/recalbox/mk_arcade_joystick_rpi


viewtopic.php?f=38&t=691&start=10#p11908

viewtopic.php?f=38&t=691&start=20#p22929

viewtopic.php?f=38&t=691&start=10#p9577




edit: i think some of it also might be for arduino, so it may not all be of much help (but check it out if you havent seen them already)....
.

User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

Re: I2c button controls

Post by erik_gee » Thu Dec 14, 2017 11:17 am

VeteranGamer wrote:
Thu Dec 14, 2017 3:11 am
erik_gee wrote:
Thu Dec 14, 2017 2:47 am
I was wondering if anyone has written any code for the i2c control board that kitschbent has? I've used the search and found someone who made something for Arduino , but I was hoping to see if anyone has worked with connecting it straight to the pi? Admittedly I'm more of a hardware guy than a software , so my abilities are lacking a bit here to do it myself. Any help is appreciated !
not sure if you came across these.....


https://github.com/recalbox/mk_arcade_joystick_rpi


viewtopic.php?f=38&t=691&start=10#p11908

viewtopic.php?f=38&t=691&start=20#p22929

viewtopic.php?f=38&t=691&start=10#p9577




edit: i think some of it also might be for arduino, so it may not all be of much help (but check it out if you havent seen them already)....
.
Thanks k you for those links veteran. I have seen them, the joystick library piqued my interest. When I looked more into it, it seemed a lot of people were having issues getting it to work. I looked at the code, and it helped get a better understanding if I should go the route of coding it myself. Was looking to see if anyone came up with a more watered down approach, as his code seemed to add a few more things that I was looking for.

I followed the kitschbent link you gave. Where I then followed another Google link on some basic examples of the ic. Also helped a bit, so thank you.

As of now it looks like I may have to lean more towards writing my own, which is a little daunting as I have not written for pi specifically before. So if anyone else has experience with this, please feel free to chime in
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

nate325ic
Posts: 2
Joined: Mon Oct 03, 2016 8:15 pm
Been thanked: 1 time

Re: I2c button controls

Post by nate325ic » Sat Dec 23, 2017 8:48 pm

nate325ic wrote:
Sat Oct 29, 2016 5:03 pm
for those who have bought this board and are looking for drivers i just got my gameboy zero up and running with this board and am using the controlblock drivers set to mame so its recognized as keyboard inputs. has been working with no issues so far
controlblock: http://blog.petrockblock.com/2014/12/29 ... pberry-pi/

User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

Re: I2c button controls

Post by erik_gee » Sat Dec 23, 2017 8:58 pm

nate325ic wrote:
Sat Dec 23, 2017 8:48 pm
nate325ic wrote:
Sat Oct 29, 2016 5:03 pm
for those who have bought this board and are looking for drivers i just got my gameboy zero up and running with this board and am using the controlblock drivers set to mame so its recognized as keyboard inputs. has been working with no issues so far
controlblock: http://blog.petrockblock.com/2014/12/29 ... pberry-pi/
Thank you for that Info, I'll look into it !
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: I2c button controls

Post by YaYa » Sun Dec 24, 2017 1:18 am

Erik_gee, could you confirm that it is working so i can save this post in the wiki for future people going the same way ?
Follow me on instagram Image

User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

Re: I2c button controls

Post by erik_gee » Sun Dec 24, 2017 11:41 am

YaYa wrote:
Sun Dec 24, 2017 1:18 am
Erik_gee, could you confirm that it is working so i can save this post in the wiki for future people going the same way ?
I won't be able to confirm it unfortunately as the port extender ic I ordered hasn't arrived yet :(
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: I2c button controls

Post by YaYa » Sun Dec 24, 2017 11:44 am

Ok no worry, later, when you will have your port extender :mrgreen:
Follow me on instagram Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest