Skip to content

Fork of ATMega32U4-Switch-Fightstick. Better mappings for retro-bit's Tribute64

Notifications You must be signed in to change notification settings

alfredo-escobar/ATMega32U4-Tribute64

 
 

Repository files navigation

Tribute64 for Switch Code (Atmega32U4)

This one is a WORK IN PROGRESS sketch + PCB for use with retro-bit's Tribute64, in order to give it proper right stick functionality, making it compatible with N64 NSO and other games/apps.

The Code itself has proper Button-Debounce, and 3 Modes of input.

Building Instructions

Pinmapping

Here is the Pinnumbers to Button Mapping for Connecting the actual physical cables to a Pro Micro.

joystickUP.attach(2,INPUT_PULLUP);
joystickDOWN.attach(0,INPUT_PULLUP);
joystickLEFT.attach(1,INPUT_PULLUP);
joystickRIGHT.attach(3,INPUT_PULLUP);

buttonA.attach(20,INPUT_PULLUP);
buttonB.attach(21,INPUT_PULLUP);
buttonSTART.attach(5,INPUT_PULLUP);

buttonCUP.attach(14,INPUT_PULLUP);
buttonCDOWN.attach(19,INPUT_PULLUP);
buttonCLEFT.attach(18,INPUT_PULLUP);
buttonCRIGHT.attach(15,INPUT_PULLUP);

buttonLB.attach(7,INPUT_PULLUP);
buttonRB.attach(10,INPUT_PULLUP);
buttonLT.attach(6,INPUT_PULLUP);
buttonRT.attach(16,INPUT_PULLUP);

#define N64_STICKX_PIN A9
#define N64_STICKY_PIN A8

Credits

Forked from fluffymadness' ATMega32U4-Switch-Fightstick sketch (https://github.com/fluffymadness/ATMega32U4-Switch-Fightstick)

Special thanks to shinyquagsire's and progmem's reverseengineering work for the pokken tournament controller. (https://github.com/progmem/Switch-Fightstick)

Dean Camera for the LUFA Library

zlittell, msf-xinput was very helpful for starting.

thomasfredericks for the Bounce2Lib.

About

Fork of ATMega32U4-Switch-Fightstick. Better mappings for retro-bit's Tribute64

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 70.5%
  • C++ 29.5%