I'm trying to build an interface using Arduino to read Atari Jaguar controller. I have the details since there's no library for this controller. It's a bit of a weird key pad matrix with 1 button using all 4 columns while the numeric buttons are 1 per column. I tried using keypad library but it wasn't working well to Jaguar's odd design so I wanted to try my own scheme.
I could use read to variable, then write variable but that seems to take more space. Is there a way to do something like this:
digitalWrite(yy) the value of digitalRead(xx) (straight write what is read) If this can be done, it'd be one line instead of 3 or 4 lines per button.
The experiement will use Mega2560 to control 21 LEDs, each one will light up when I press a specific button. I have pile of Jaguar controller and no Jaguar system to test with. A working Jaguar with 1 game is almost $100 on eBay plus I'd have to wait about a week and hope I didn't get bummed by a dishonest seller, a mega clone is about $20 which I already have and I could finish this tonight.