Coder Social home page Coder Social logo

dmadison / arduinoxinput_sparkfun Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 6.0 131.95 MB

SparkFun boards package for the ArduinoXInput project

C++ 38.54% C 46.28% Makefile 15.18%
arduino arduino-ide arduino-boards usb xinput xinput-controller xbox xbox-controller xbox360 sparkfun avr makey-makey

arduinoxinput_sparkfun's Introduction

SparkFun Arduino Boards w/ XInput

Build Status

This repository contains support for the SparkFun Arduino-compatible development boards, modified to work as XInput devices. Originally forked from the SparkFun repo.

These boards are meant to be used in conjunction with the ArduinoXInput library.

Automated Installation

Follow the official instructions for adding third party boards and adding boards to the Arduino IDE.

Add the following line to the "Additional Boards Manager URLs" list:

https://raw.githubusercontent.com/dmadison/ArduinoXInput_Boards/master/package_dmadison_xinput_index.json

If you've done this correctly, the XInput boards packages will be available within the Boards Manager. Install the "XInput AVR Boards" package as well as the "XInput SparkFun Boards" package. Note that the core "XInput AVR Boards" package is required for the SparkFun boards to work.

Manual Installation

└───Arduino App Data Folder
    ├───cache
    ├───logs
    ├───staging
    └───packages
        ├───arduino
        └───xinput
        └───xinput_sparkfun
            └───hardware
                └───avr
                    └───{version}
                        ├───bootloaders
                        ├───libraries
                        └───variants

To install manually you will need to find the Arduino IDE's application data folder. On Windows this is located in %APPDATA%\..\Local\Arduino15.

You will need to create the necessary folders in the "packages" directory: xinput_sparkfun/hardware/avr/{version}, where {version} is the current semantic version number of the repository (e.g. "1.0.0"). The subfolder of this repository containing the boards files should then be copied into this folder. See the tree view above for reference.

You will also need to copy the boards files from the Arduino XInput AVR core. Follow the instructions in the README. The two folders, xinput and xinput_sparkfun, should live next to each-other in the "packages" directory.

After you have copied the files, restart the Arduino IDE. If the SparkFun boards files are installed correctly, you should see a new collection of "SparkFun AVR Boards w/ XInput" in the Tools -> Boards menu. If you get an error while compiling, make sure the XInput AVR core is installed properly.

To uninstall, delete both "xinput" folders and then restart the Arduino IDE.

Upload Warning and Instructions

Due to the nature of how the XInput USB mode works, Arduinos that have XInput sketches on them will not automatically reset when programmed by the IDE! You will need to reset the board by hand every time you upload new code.

Full instructions for uploading are provided in the AVR Core repository.

Do not upload XInput sketches to your Arduino unless you know how to reset it! Otherwise you will not be able to program it anymore and you'll have to remove the XInput sketch by flashing the board with an external programmer.

Included Boards

All of the following boards make use of the Arduino XInput AVR core:

Other SparkFun boards may be theoretically compatible with XInput, but are not yet available because the XInput USB modifications have not been ported to their architecture.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.