Browse Source

NES/SNES Input pins changed to Pullup

There was noisy random input. Setting to pullup alleviates this.
pull/7/head
Alex Ong 3 years ago
committed by GitHub
parent
commit
bbb6f440ea
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      RetroJoystickAdapter.ino

+ 2
- 2
RetroJoystickAdapter.ino 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);


Loading…
Cancel
Save