Skip to content

Instantly share code, notes, and snippets.

@HerrSpace
Created June 19, 2013 19:10
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 HerrSpace/5817070 to your computer and use it in GitHub Desktop.
Save HerrSpace/5817070 to your computer and use it in GitHub Desktop.
keyboard
void setup() {
Mouse.begin();
}
int count = 0;
void loop() {
count++;
int x = sin(count) * 200 + 500;
int y = asin(count) * 200 + 500;
Mouse.move(x, y, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment