Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created December 5, 2015 19:57
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 michaelsarduino/bfcbfcde5061a5b60329 to your computer and use it in GitHub Desktop.
Save michaelsarduino/bfcbfcde5061a5b60329 to your computer and use it in GitHub Desktop.
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print("X: ");
Serial.print(analogRead(A0));
Serial.print(" Y: ");
Serial.print(analogRead(A1));
Serial.print(" Button: ");
Serial.println(digitalRead(2));
delay(10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment