I decided, after finishing my MAKERbuino, that my first few projects would be physical alterations of the console and this is the result of my first attempt, a basic implementation of a joystick module I had laying around that can be utilised by any single-player game that already uses directional movement with slight modification to the game’s code.
The joystick simply plugs onto the I2C pins at the top of the MAKERbuino using jumper cables and any game that isn’t already using the I2C pins can have its code slightly modified to use analog pins A4 and A5 as physical input instead of the directional buttons.
I used the ‘Pong’ example sketch from the Gamebuino library as the basis of my test code which I’ve uploaded to pastebin for reference and the wiring for the joystick to I2C pins is as following:
VCC/+5v to VCC/+5v
GND to GND
X axis to SDA
Y axis to SCL
My joystick comes with a button press feature but I have not worked out a simple way of wiring it to the MAKERbuino as of yet.