|
1 | | -# XInput USB Core for Arduino AVR [](https://github.com/dmadison/ArduinoXInput_AVR/actions?query=workflow%3Abuild) |
| 1 | +# XInput USB Core for Arduino AVR |
| 2 | +[](https://github.com/dmadison/ArduinoXInput_AVR/actions?query=workflow%3Abuild) |
2 | 3 |
|
3 | 4 | The files in this repository allow you to emulate an Xbox gamepad (XInput) using a USB-capable Arduino microcontroller. Originally forked from [the official Arduino AVR core](https://github.com/arduino/ArduinoCore-avr). |
4 | 5 |
|
5 | 6 | This is meant to be used in conjunction with the [ArduinoXInput library](https://github.com/dmadison/ArduinoXInput). |
6 | 7 |
|
7 | | -## Installation |
| 8 | +## Automated Installation |
| 9 | + |
| 10 | +Follow the official instructions for [adding third party boards](https://support.arduino.cc/hc/en-us/articles/360016466340-Add-or-remove-third-party-boards-in-Boards-Manager) and [adding boards to the Arduino IDE](https://support.arduino.cc/hc/en-us/articles/360016119519-Add-boards-to-Arduino-IDE). |
| 11 | + |
| 12 | +Add the following line to the "Additional Boards Manager URLs" list: |
| 13 | +``` |
| 14 | +https://raw.githubusercontent.com/dmadison/ArduinoXInput_Boards/master/package_dmadison_xinput_index.json |
| 15 | +``` |
| 16 | + |
| 17 | +If you've done this correctly, the XInput boards packages will be available within the Boards Manager. Install the "XInput AVR Boards" package to add these boards to the IDE. |
| 18 | + |
| 19 | +## Manual Installation |
8 | 20 | <pre> |
9 | | -└───Arduino Installation |
10 | | - ├───drivers |
11 | | - ├───examples |
12 | | - ├───hardware |
13 | | - │ ├───arduino |
14 | | - │ ├───tools |
15 | | - │ └───<b>xinput |
16 | | - │ └───avr |
17 | | - │ ├───bootloaders |
18 | | - │ ├───cores |
19 | | - │ ├───libraries |
20 | | - │ └───variants</b> |
21 | | - ├───java |
22 | | - ├───lib |
23 | | - ├───libraries |
24 | | - ├───reference |
25 | | - ├───tools |
26 | | - └───tools-builder |
| 21 | +└───Arduino App Data Folder |
| 22 | + ├───cache |
| 23 | + ├───logs |
| 24 | + ├───staging |
| 25 | + └───packages |
| 26 | + ├───arduino |
| 27 | + └───<b>xinput |
| 28 | + └───hardware |
| 29 | + └───avr |
| 30 | + └───{version} |
| 31 | + ├───bootloaders |
| 32 | + ├───cores |
| 33 | + ├───drivers |
| 34 | + ├───libraries |
| 35 | + └───variants</b> |
27 | 36 | </pre> |
28 | 37 |
|
29 | | -To install, [download the latest release](../../releases/latest) to your PC and navigate to the directory containing your Arduino installation. Open up the 'hardware' folder and extract the contents of the .zip file into this directory. You should have a new 'xinput' folder with an 'avr' folder inside of it containing the files from this repository. This should match the tree view above. If you clone the repository, you must create these parent folders yourself. |
| 38 | +To install manually you will need to find the Arduino IDE's application data folder. On Windows this is located in `%APPDATA%\..\Local\Arduino15`. |
| 39 | + |
| 40 | +You will need to create the necessary folders in the "packages" directory: `xinput/hardware/avr/{version}`, where `{version}` is the current [semantic version number](https://en.wikipedia.org/wiki/Software_versioning) of the repository (e.g. "1.0.0"). The repository should then be cloned into this folder. See the tree view above for reference. |
30 | 41 |
|
31 | | -After you have copied the files restart the Arduino IDE. If the XInput AVR core is installed correctly, you should see a new collection of "XInput AVR Boards" in the `Tools -> Boards` menu. |
| 42 | +After you have copied the files, restart the Arduino IDE. If the XInput AVR core is installed correctly, you should see a new collection of "XInput AVR Boards" in the `Tools -> Boards` menu. |
32 | 43 |
|
33 | | -To uninstall, delete the 'xinput' folder in the 'hardware' directory, and then restart the Arduino IDE. |
| 44 | +To uninstall, delete the 'xinput' folder and then restart the Arduino IDE. |
34 | 45 |
|
35 | 46 | ## Upload Warning and Instructions |
36 | 47 |
|
|
0 commit comments