Arduboy Gamepad - Map buttons to keys!


Arduboy Gamepad allows you to map your Arduboy’s buttons to keyboard keys.


Power it up, choose some key bindings, and play!




  • Download the source code ZIP from the Github repository
  • Rename the extracted “ArduboyGamepad-master” folder to “ArduboyGamepad”
  • Open ArduboyGamepad.ino with Arduino IDE 1.6.7+
  • (Optional) Select your board using the Arduboy boards.txt file
  • Click the upload button to install to your Arduboy
  • Now play some flash games!


  • You can save up to five mapping configurations.
  • Alphanumeric, function and modifier keys are supported.
  • To exit from gamepad mode back to the main menu, turn the Arduboy off and on again.
  • Want a feature? Just leave a reply in this thread!

I tested any shooting game.
No problem. Fine. I was surprised arduino library power(Keyboard.h).
nice idea software.

edited. :zipper_mouth:


shhhhh… :zipper_mouth:

1 Like

This is absolutely brilliant! Amazing work, dude! I love the idea and love that you can save the inputs! Can’t wait to load this up on my Arduboy whenever I get it in. :smiley:


You know everyone can still view the edit anyway right?

This is a public discussion, if a user wants to mention a product it won’t hurt anything on any level. So the edit is just odd here.

I think they understand and are just having fun with the forum software :grin:

1 Like

One can only hope :smiley:

1 Like

Well out of the last two Kickstarter backings I’ve done arduboy is my favorite…

So I decided to combine the two! Lol I was bored😜


upload code!!! upload code!!! XD

The pocket chip was set up following this, with some tweeks…

The arduboy is the same code posted in the first post of this topic, no change.

I just tried this out and it’s as amazing as I thought it would be! Great job, @fuopy!

This is great! I was just about to program something like this myself out of curiosity to see whether it was possible. I now know it is, and not only that, but you’ve made something much better than I would have!

One issue: The labels for the A and B buttons seem to be backwards. This one seems to use the gameboy conventions, whereas the buttons are named differently on the Arduboy.

1 Like

Hello, Guys.
Today, 20th December 2016 i have uploaded Arduboy Gamepad Sketch to test it.
When i have uploaded it i noticed that it doesn’t work well.
After i have installed ArduSnake to test it , I realized that was not working the key A_BUTTON :frowning:

What i have tried :

Disassembled Arduboy to test hardware;
What i think is the problem :

When I was hacking with Arduboy Gamepad I “accidentally” modified settings by assigning anything to A_BUTTON and now I do not know how to restore it :frowning: Help me please …

-P3RISH (Mattia Colasanto);

@P3RISH it might be better to start a new thread, because if you upload new software, all of the device settings are reset. The only way to cause a problem that will persist between uploading new games is if you modified the library. And if you did that, and are concerned about the edits to the library, you can always re-download the library.

Last but not least it is possible there is a mechanical issue with the A button as well.

1 Like

Worth noting to future users: There’s a bug with this tool. I’ve submitted a pull request to fix it but fuopy hasn’t accepted it yet… it’s been a while. :confused:


Any chance on a .hex or .arduboy file?

Awesome!! I just got everything I was looking for in that link. THANK YOU!!

1 Like

Where is the enter button on the gamepad?

the Arduino IDE code has an error

#include “globals.h”

ArduboyGamepad:1:21: error: globals.h: No such file or directory

compilation terminated.

exit status 1
globals.h: No such file or directory