thejpster / monotron

A simple 8-bit home computer style application for the TI Tiva-C Launchpad
Apache License 2.0
191 stars 9 forks source link

Joystick support #24

Closed thejpster closed 6 years ago

thejpster commented 6 years ago

Atari 9-pin joystick interface.

Console-side joystick port seen from the front.

  1. Up
  2. Down
  3. Left
  4. Right
  5. Paddle B
  6. Trigger
  7. +5 volts power
  8. Ground
  9. Paddle A

Joysticks pull pins to ground. We can ignore (i.e. N/C) the Paddle pins. I guess some sticks might need power?

image

thejpster commented 6 years ago

A Megadrive puts 5V on pin 5, fire 2 on pin 9 and turns pin 7 into a select line (swapping between A/B and C/Start).

thejpster commented 6 years ago

I now have an Atari 2600 joystick for testing.

thejpster commented 6 years ago

This is in 0.6.2, but I've accidentally put fire on PF0 instead of PF4. It's fine, it's just on the other pin header.

thejpster commented 6 years ago

The pin mixup is now fixed in master. Not worth a 0.6.3 though.