Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: SAMCO DIY Arduino Powered IR Light Gun  (Read 71443 times)

0 Members and 1 Guest are viewing this topic.

samco

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 48
  • Last login:December 12, 2022, 06:21:30 pm
  • SAMCO Light Gun Creater
Re: SAMCO DIY Arduino Powered IR Light Gun
« Reply #160 on: December 12, 2022, 06:21:30 pm »
@scratcher no problem mate. The easiest way is to just reallocate those pins. So find the bit in the code that looks like this and swap the values around like this...

int _tiggerPin = 7;               // Label Pin to buttons
int _upPin = 11;               
int _downPin = 13;             
int _leftPin = 10;             
int _rightPin = 12;               
int _APin = A1;               
int _BPin = A0;             
int _startPin = A2;
int _selectPin = A3;               
int _reloadPin = 9;
int _pedalPin = 5;   

That will swap those function around. i.e down is now calibration and the old calibration button is now down.