mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-12-22 07:28:53 -05:00
Update SimpleAtariExample.ino
This commit is contained in:
parent
05f2e80072
commit
083a308d86
@ -7,11 +7,13 @@
|
||||
|
||||
// Here we define pins we used. Along with these we have to connect joystick ground to Arduino GND.
|
||||
// Because of Arduino internal pullup resistor off state is 1. Moving joystick switches that to ground and then it is 0.
|
||||
#define UP 2
|
||||
#define DOWN 3
|
||||
#define LEFT 4
|
||||
#define RIGHT 5
|
||||
#define BUTTON 6
|
||||
// 9-pin D-connector:
|
||||
#define UP 2 // D-connector pin 1
|
||||
#define DOWN 3 // D-connector pin 2
|
||||
#define LEFT 4 // D-connector pin 3
|
||||
#define RIGHT 5 // D-connector pin 4
|
||||
#define BUTTON 6 // D-connector pin 6
|
||||
// D-connector pin 8 to GND
|
||||
|
||||
|
||||
// We keep record how everything was last time, so we can compare if anything have changed.
|
||||
|
Loading…
Reference in New Issue
Block a user