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
Site News

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


  

Author Topic: XBOXPadMicro - A firmware that turns Arduino Micro (Leonardo) into an XBOX pad!  (Read 10761 times)

0 Members and 1 Guest are viewing this topic.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6998
  • 2013 UCA Awardee
Nice, it works  :applaud: 
I changed two lines in the bootsector source
pad_up = !bit_check(PINC, 7); (changed to F7)
pad_left = !bit_check(PINB, 0);  (changed to F5)
Now I have a working D-pad! The analog sticks are incomplete, but I wasn't planning on wiring them.
Glad to hear you got it working, Imp.   ;D

If you don't mind posting your compiled hex, I'll make a corresponding Pro Micro pinout image.   :cheers:


Scott
EDIT: Working on the pinout map and wondering which of these possible changes would be more useful for most users and make the best use of the available pins:
- Left analog thumbstick (F4 and F6 to L. Analog U and L. Analog D) or
- L and R triggers (F4 and F6 to L and R) or
- Right analog thumbstick (B1 and B3 to R. Analog D and R. Analog R)
« Last Edit: January 03, 2019, 06:34:58 pm by PL1 »

imp

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • I want to build my own arcade controls!
I can post my hex file, but I think I screwed it up somehow, I used the wrong tool to check the buttonfunctions  :banghead:
When I connected everything to my cab all the buttons got a different input ingame  :(
I'll reflash my ProMicro with the original hex files to see what I did wrong.

Is there maybe a preferred Xinput button test program?

imp

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • I want to build my own arcade controls!
I used this tool to map my buttons correctly: https://gamepadviewer.com/
For the attached hex file I used this mapping for the Pro Micro (B1 and B3 on pins 15 and 14 are spare and not in use).

TX0 = D3 = B (red)
RX1 = D2 = A (green)
GND
GND
2 = D1 = X (blue)
3 = D0 = Y (yellow)
4 = D4 = LB
5 = C6 = LT
6 = D7 = RB
7 = E6 = RT
8 = B 4 = Start
9 = B5 = Back/Select

RAW
GND
RST
VCC
A3 = F4 = pad right
A2 = F5 = pad left
A1 = F6 = pad down
A0 = F7 = pad up
15 = B1
14 = B3
16 = B2 = L3
10 = B6 = R3

It's working perfectly now. Thanks for all the help  :cheers:

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6998
  • 2013 UCA Awardee
Thanks for the updated hex, Imp.   :cheers:

Here's a pinout image. (LMK if there are any errors.)


Scott
EDIT: Fixed typo, changed "Stick Press" to "Stick Button", and added "Xinput" to title.
« Last Edit: January 03, 2019, 07:00:53 pm by PL1 »

  
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31