Skip to content

Instantly share code, notes, and snippets.

@kelliott121
Created May 2, 2017 17:05
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/7b2253a6774c7b025d01a6e383d3ff94 to your computer and use it in GitHub Desktop.
Save kelliott121/7b2253a6774c7b025d01a6e383d3ff94 to your computer and use it in GitHub Desktop.
// Print the Key packet
// DPad
Serial.print("K:");
Serial.print(digitalRead(RIGHT));
Serial.print(digitalRead(UP));
Serial.print(digitalRead(LEFT));
Serial.print(digitalRead(DOWN));
// Action buttons
Serial.print(digitalRead(A));
Serial.print(digitalRead(B));
Serial.print(digitalRead(X));
Serial.println(digitalRead(Y));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment