Skip to content

Commit d512b3f

Browse files
authored
Merge pull request #19 from dmadison/docs
Add automated installation instructions to README
2 parents 7d4ce26 + 794563c commit d512b3f

File tree

1 file changed

+34
-23
lines changed

1 file changed

+34
-23
lines changed

README.md

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,47 @@
1-
# XInput USB Core for Arduino AVR [![Build Status](https://github.com/dmadison/ArduinoXInput_AVR/workflows/build/badge.svg?branch=master)](https://github.com/dmadison/ArduinoXInput_AVR/actions?query=workflow%3Abuild)
1+
# XInput USB Core for Arduino AVR
2+
[![Build Status](https://github.com/dmadison/ArduinoXInput_AVR/workflows/build/badge.svg?branch=master)](https://github.com/dmadison/ArduinoXInput_AVR/actions?query=workflow%3Abuild)
23

34
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).
45

56
This is meant to be used in conjunction with the [ArduinoXInput library](https://github.com/dmadison/ArduinoXInput).
67

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
820
<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>
2736
</pre>
2837

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.
3041

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.
3243

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.
3445

3546
## Upload Warning and Instructions
3647

0 commit comments

Comments
 (0)