1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2025-03-03 10:51:46 -05:00

Update README.md

This commit is contained in:
Adriano Afonso 2016-11-13 23:34:53 +00:00 committed by GitHub
parent 41ada81e0e
commit a052d88afd

View File

@ -63,11 +63,11 @@ Example of NES-controller wiring:
- `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.
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).
- `Tools->Port->COMx`
Arduino IDE shows available COM-ports. In most cases it's biggest numbered COM-port. COM-port number can change when you start to upload program first time (COM-port number can be different after joystick-features are enabled). If this happens, just change COM-port and start upload again. When I tested with RetrOrangePi (Armbian Linux), port was `/dev/ttyACM0`.
Arduino IDE shows available COM-ports. In most cases it's biggest numbered COM-port. COM-port number can change when you start to upload program first time (COM-port number can be different after joystick-features are enabled). If this happens, just change COM-port and start upload again. When I tested with RetrOrangePi (Armbian Linux), port was `/dev/ttyACM0`. In Windows envoirement, do not use any USB HUB, it may interfere whit the comunication whit ATmega32u4 board.
- Test your programming environment and upload
@ -89,7 +89,7 @@ Example of NES-controller wiring:
- Press Upload
- If you got no errors, test in Windows with `Control Panel -> Game Controllers` or in Linux with `jstest /dev/input/js0`
- If you got the message "all done" and no errors, test in Windows with `Control Panel -> All Control Panel Items > Devices and Printers (some Windows versions in Game Controllers)` and try to find 'Arduino Leonardo' or in Linux with `jstest /dev/input/js0`
### Linux and more than one controller with one Arduino
Linux usbhid-module doesn't support out of box multiple controllers with one USB without USB-hub-features (I'm not sure about this, but I didn't manage to get multiple /dev/js-devices without this).