background preloader

Cases for yo' Raspberry Pi

Cases for yo' Raspberry Pi

Raspberry Pi GPIO Joystick | Chris Swan's Weblog After getting MAME going on my Raspberry Pi so that I could play old arcade games. I wanted to hook up a proper joystick. Back in the 80′s I had the excellent and ubiquitous Competition Pro 5000. As mine (foolishly) got sold with my Amiga stuff I got one on eBay, and it came in the original box: The first step was to get it hooked up to the RPi general purpose input output (GPIO). I used a breadboard with my homebrew Pi Cobbler at one end and a similar connector at the other hooked up to an old PC serial card cable that has the right (male) DB9 connector for the joystick plug (female). Since I was originally planning to use gpio-keys I used the joystick pinout to hook up to the RPi thus: Up -> 11 (GPIO 17)Down -> 13 (GPIO 22)Left -> 15 (GPIO 23)Right -> 16 (GPIO 24)n/cFire -> 7 (GPIO 4)n/cGNDn/c Blind alley Having already seen gpio-keys I thought I’d be using that, but when it came to the crunch I didn’t know where to start – I probably need a package of RPi kernel source. Conclusion

Related: