Gc+ alternative for raspberry pi?

Ollie

.
Joined
Jul 21, 2020
Messages
28
Likes
19
I am making a raspberry pi powered project, and I wondered if there is a chip like the gc+ I can connect all my buttons and sticks to.
 
Joined
Jun 9, 2021
Messages
15
Likes
3
have you gotten it to work?
I'm having issues with the joystickmalfunctioning as soon as I add other buttons
 

Dmcke5

.
2020 1st Place Winner
Joined
Feb 16, 2020
Messages
206
Likes
835
Location
Queensland, Australia
Portables
3
have you gotten it to work?
I'm having issues with the joystickmalfunctioning as soon as I add other buttons
If you want a plug and play solution, I've put my code on github: https://github.com/dmcke5/Ardupad

It is for an atmega32u4 based arduino board though (such as the Arduino Micro), not a teensy.
 
Joined
Jun 9, 2021
Messages
15
Likes
3
Ah big thanks!
I've got both in spare so I'll defenitely look at it soon :D
 

Dmcke5

.
2020 1st Place Winner
Joined
Feb 16, 2020
Messages
206
Likes
835
Location
Queensland, Australia
Portables
3
would it work with the teensy 2 or 2++ as there both atmega32u4 based?
Probably? As long as they are fully supported in Arduino then it shouldn't be a problem I guess. The question really will be over the library that I've used and if it is compatible with the board. If you've got one handy, give it a go for us and report back if it works!
 
Joined
Jan 18, 2020
Messages
37
Likes
9
Probably? As long as they are fully supported in Arduino then it shouldn't be a problem I guess. The question really will be over the library that I've used and if it is compatible with the board. If you've got one handy, give it a go for us and report back if it works!
thanks, I do have a Teensy 2 and 2++, will try and give it a go this weekend if I get time, the 2++ is nice because of all the extra pins
 
Joined
Jan 18, 2020
Messages
37
Likes
9
Probably? As long as they are fully supported in Arduino then it shouldn't be a problem I guess. The question really will be over the library that I've used and if it is compatible with the board. If you've got one handy, give it a go for us and report back if it works!
I tried compiling it for the teensy 2 but as you thought the joystick library is not compatible, I think its the PluggableUSB.h and DynamicHID.h that do not work with the teensy, shame!
I
 

Dmcke5

.
2020 1st Place Winner
Joined
Feb 16, 2020
Messages
206
Likes
835
Location
Queensland, Australia
Portables
3
I tried compiling it for the teensy 2 but as you thought the joystick library is not compatible, I think its the PluggableUSB.h and DynamicHID.h that do not work with the teensy, shame!
I
I did a quick google search and it does look like it wouldn't be hard to modify the code to work with a Teensy. This link gives a bit of an example: https://www.pjrc.com/teensy/td_joystick.html
Based on that link, I'm pretty sure all you'd need to do is comment out the joystick library and change the function calls for setting buttons and the POV hat. The calls to set joystick positions look like they would work just fine as is.

If I had one in front of me I'm sure I could have the code running on it in a couple of minutes.
 
Joined
Jan 18, 2020
Messages
37
Likes
9
I did a quick google search and it does look like it wouldn't be hard to modify the code to work with a Teensy. This link gives a bit of an example: https://www.pjrc.com/teensy/td_joystick.html
Based on that link, I'm pretty sure all you'd need to do is comment out the joystick library and change the function calls for setting buttons and the POV hat. The calls to set joystick positions look like they would work just fine as is.

If I had one in front of me I'm sure I could have the code running on it in a couple of minutes.
if you wanted to modify your code I would be happy to test it out on the teensy 2 and ++?
 
Joined
Jan 18, 2020
Messages
37
Likes
9
I did a quick google search and it does look like it wouldn't be hard to modify the code to work with a Teensy. This link gives a bit of an example: https://www.pjrc.com/teensy/td_joystick.html
Based on that link, I'm pretty sure all you'd need to do is comment out the joystick library and change the function calls for setting buttons and the POV hat. The calls to set joystick positions look like they would work just fine as is.

If I had one in front of me I'm sure I could have the code running on it in a couple of minutes.
if you wanted to modify your code I would be happy to test it out on the teensy 2 and ++?
 
Top