mcgurk / Arduino-USB-HID-RetroJoystickAdapter

Arduino joystick/gamepad/other USB-adapter
131 stars 35 forks source link

NES Zapper integration, suggestion #14

Closed riggles1 closed 2 years ago

riggles1 commented 3 years ago

Been going back and forth with this for a couple of days trying to understand how to integrate the two Zapper NES controller pins. There's romhacks that make a zapper usable on any type of display http://neslcdmod.com/schemes/

Got it wired in the same way as above with trigger to arduino pin 5 and the light sensor to arduino pin 6, I'm able to make the light sensor return a signal (all controller buttons+dpad flicker on and off quickly as I point the zapper at a light), the wiring and light sensing works great. But I can't figure out how to code it to make the trigger and light sensor convert into a single on/off USB controller button press when they activate.

Would be great to have the two unused zapper pins integrated for the RetroJoystickAdapter project, for an all-in-one 2x controller adapter and zapper adapter.

Any help is greatly appreciated!