Skip to content

Instantly share code, notes, and snippets.

View catatonicTrepidation's full-sized avatar

Andrew Young catatonicTrepidation

View GitHub Profile
@catatonicTrepidation
catatonicTrepidation / MouseArduino
Created July 23, 2015 21:56 — forked from KaiaKitten/MouseArduino
Arduino Uno Mouse
const int LEFT_BUTTON =2; //Input pin for the left button
const int MIDDLE_BUTTON =3; //Input pin for the middle button
const int RIGHT_BUTTON =4; //Input pin for the right button
const int X_AXIS =0; //Joystick x-axis analog pin
const int Y_AXIS =1; //Joystick y-axis analog pin
int val; //For holding mapped pot value
int readJoystick(int axis)