mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-12-21 06:58:55 -05:00
NES/SNES Input pins changed to Pullup
There was noisy random input. Setting to pullup alleviates this.
This commit is contained in:
parent
cac157a770
commit
bbb6f440ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user