From 0a4cac47320ce1abe91f9741411d01eb0a5b1e2d Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Tue, 15 Nov 2016 15:36:12 +0200 Subject: [PATCH] Update README.md --- README.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2100f16..055482e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ If you use Linux and want to get more than 1 controller with one Arduino, check - Get ATmega32u4 Arduino board - Connect joystick or gamepad to Arduino (in most situations soldering is required) - Install Arduino [IDE](https://www.arduino.cc/en/Main/Software) -- Edit boards.txt - Install Joystick [library](https://github.com/MHeironimus/ArduinoJoystickLibrary) (if needed) - Open sourcecode to Arduino IDE and select controller by commenting and uncommenting and edit pin-numbers (if needed) - Upload @@ -62,16 +61,6 @@ Example of NES-controller wiring: - Download and install Arduino IDE: https://www.arduino.cc/en/Main/Software -- Edit `C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt` or in linux `arduino-x.x.xx/hardware/arduino/avr/boards.txt` (close Arduino IDE before editing): -``` -# leonardo.build.vid=0x2341 -# leonardo.build.pid=0x8036 -leonardo.build.vid=0x8282 -leonardo.build.pid=0x3201 -# leonardo.build.usb_product="Arduino Leonardo" -leonardo.build.usb_product="Retro Joystick Adapter" -``` - - `Tools->Board->Arduino Leonardo` In Arduino IDE you have to select board. In my case some reason "Arduino Leonardo" selections works better than "Arduino/Genuino Micro". With Leonardo-setting RX and TX leds are normally off and blinks when data is transfered to/from USB. With Micro-setting LED's are normally on and they blinks to off when data is transferring. Connect now your board ATmega32u4 through USB, the RX and TX leds should blink (if not, try another USB port). @@ -115,6 +104,16 @@ There is simple tutorial in [Tutorial](https://github.com/mcgurk/Arduino-USB-HID ## Misc +- Edit `C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt` or in linux `arduino-x.x.xx/hardware/arduino/avr/boards.txt` (close Arduino IDE before editing): +``` +# leonardo.build.vid=0x2341 +# leonardo.build.pid=0x8036 +leonardo.build.vid=0x8282 +leonardo.build.pid=0x3201 +# leonardo.build.usb_product="Arduino Leonardo" +leonardo.build.usb_product="Retro Joystick Adapter" +``` + ### Using Arduino Leonardo in Windows with Arduino Leonardo VID/PID On any other MS Windows platforms you may have to install the arduino drivers. To have the last updated ones, just download the file `Windows ZIP file for non admin install` from the page https://www.arduino.cc/en/Main/Software. After the download, unzip the folder. Go to the `Computer` > right click > `Manage > Unknown devices` > right click > `Update software controller > Find on my computer > Search` > and try to find the folder `\arduino-1.6.xx\drivers` inside the folder you unziped before. Click `Next` and Windows should install the driver. Arduino would apper as the name `Arduino Leonardo` inside `Ports (COM and LPT)` with an associated COM port (like `COM9` for example).