1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-24 18:12:19 -05:00

Merge pull request #7 from alex-ong/patch-2

NES/SNES Input pins changed to Pullup
This commit is contained in:
Jarno Lehtinen 2019-01-15 20:24:32 +02:00 committed by GitHub
commit f16fed2d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -319,10 +319,10 @@ void interpretJoystickState(uint8_t j, uint8_t *status) {
void setupJoysticks() {
pinMode(LATCH1, OUTPUT);
pinMode(CLOCK1, OUTPUT);
pinMode(DATA1, INPUT);
pinMode(DATA1, INPUT_PULLUP);
pinMode(LATCH2, OUTPUT);
pinMode(CLOCK2, OUTPUT);
pinMode(DATA2, INPUT);
pinMode(DATA2, INPUT_PULLUP);
}
#define latchlow digitalWrite(LATCH1, LOW); digitalWrite(LATCH2, LOW);