Infineon-DIY Arcade Gaming Station-UserManual-v01 00-EN
Infineon-DIY Arcade Gaming Station-UserManual-v01 00-EN
Infineon-DIY Arcade Gaming Station-UserManual-v01 00-EN
Hardware
Housing
Magnet inside housing replaces feather and provides better haptic feeling:
It pulls metal sheet upwards which moves the button back up after it was pushed
Pushing the button moves the sensor magnet below the sensor -> sensor output toggles
Sensor magnets are as well hold in place by 3d printed part „Hall Switch Button Mount.stl“
› Touchscreen
› Raspberry Pi 4 + Infineon
Shield2Go Adapter
› Directly after booting, the menu can be seen and music should be played.
Otherwise: Reboot (described in chapter „Hotkeys“)
› After 5 minutes with no action the overall highscore shows up as
screensaver. It can be ended by pressing A, B or the touchscreen
› The Demo can be controlled by some button/joystick/touchscreen
combinations (furhter referred to as „Hotkeys“)
› There are two ways on how to gain control over the demo (basically how
to access the raspberry-pi operating system):
› The menu will close and the normal Raspberry pi desktop appears. Here
you have full control of the demo.
› edit game file(s): - find file where keyboard is read (search for
pygame.key.get_pressed())
– at beginning: import joystick and buttons
– Init joystick and buttons
– after key.get_pressed():
– read joystick and buttons
– edit key map accordingly (e.g. if joystick.X < -0.3: LEFT_KEY = true)
Copy
› Reading joystick
› Test game: exit menu via hotkeys and start game manually from Desktop
(Touchscreen)
› If not already done: make game fullscreen
› /home/pi/Arcade/Menu/pimenu.ya › /home/pi/Arcade/Menu/pimenu.sh
ml
Start game
List highscore
› Find the place in the game where it‘s best to run the highscore functions
› Here: At the end of the gaming script (so it just runs once at the end of a game)
› Edit /home/pi/Arcade/highscores/list.py
› Include in main():
› Edit listOverall():
Copy/paste, then
edit according to
your game
other games are left out here for better readability