This section will walk you through the entire process of setting up your Leonardo on a Windows computer.
Make sure you have the hardware:
Download and install WinAVR.
It is strongly recommended to install it in the default directory (C:/WinAVR-20100110
).
Download QMK Toolbox.
You want the file qmk_toolbox.exe
.
Download the latest version of our Arduino programs from here.
(The link should look like something like PA-NativePrograms-0.x.x-xxxxxxxx.zip
)
If you get a virus or malware warning, ignore it. These are known false positives. If you don't trust us, the source code is here.
Once you have downloaded the package, unzip to somewhere you can access later. Do not put it on Microsoft OneDrive.
- Open the package from previous section and double-click on
HexGenerator-Windows.cmd
to run it. - In the "Board Type" drop-down, change it to "Arduino Leonardo" depending on which board you have.
- In the program list, click on "Turbo A".
We recommend starting with "Turbo A" as it is the simplest program. If you are able to get this running, it is easier to troubleshoot the other programs.
- Click on "Save and generate .hex file!".
After a while, you should get a confirmation box saying it was successful. You should now see a file TurboA-ArduinoLeonardo.hex
in the folder of the programs.
- Run the QMK Toolbox program that you downloaded earlier.
- Open the .hex you generated in the previous step.
- Change the MCU to
atmega32u4
. - Check the "Auto-Flash" box.
- Plug the Leonardo into your computer. Wait for the drivers to install.
- Press the reset button.
The QMK program will now flash the program to the Leonardo and show a bunch of logging. Afterwards, the 3 LEDs on the Leonardo should flash in unison for 5 seconds before turning off.
- Unplug the Leonardo from your computer.
- On your Switch, enter the game and navigate to somewhere you want to mash A in front of (such as the digging duo).
- Navigate to the grip menu without closing the game. This disconnects all controllers from the Switch so that the Leonardo can take over.
- Plug the Pro Micro into your Switch (or the dock that's attached to it).
The program should now begin running. It will flash its lights for a few seconds, then it will connect to the Switch and navigate its way back into the game. After a brief pause, it will start mashing A.
Usage Notes:
- To stop the program, simply unplug the Pro Micro at any time.
- Do not change video output or mess with the HDMI. These can cause the program to Switch to freeze for multiple seconds and break the program. If you want turn off the TV, do it before you start the program.
You now know how to run TurboA - the most basic of the programs. You can choose any of the other programs and repeat steps 5-7.
It is important to read the manual for a program before you use it. Each program has a different set of instructions and startup conditions. You can find the manual for a program by clicking on the "Online Documentation" link.
Now that you are done with the Microncontroller tutorial, you can proceed to the Computer-Control tutorial.
Discord Server: