Skip to content

Instantly share code, notes, and snippets.

@kelliott121
Created May 2, 2017 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelliott121/44cceeca48af4b19d7372b4449ce0b7c to your computer and use it in GitHub Desktop.
Save kelliott121/44cceeca48af4b19d7372b4449ce0b7c to your computer and use it in GitHub Desktop.
// Set the DPad buttons to pullup inputs
pinMode(RIGHT, INPUT_PULLUP);
pinMode(UP, INPUT_PULLUP);
pinMode(LEFT, INPUT_PULLUP);
pinMode(DOWN, INPUT_PULLUP);
// Set the action buttons to pullup inputs
pinMode(A, INPUT_PULLUP);
pinMode(B, INPUT_PULLUP);
pinMode(X, INPUT_PULLUP);
pinMode(Y, INPUT_PULLUP);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment