Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Mysz automagiczna
- */
- #include <Mouse.h>
- void setup()
- {
- // put your setup code here, to run once:
- Mouse.begin();
- }
- long interval = 300000;
- long next_release = 0;
- void loop()
- {
- // put your main code here, to run repeatedly:
- long now = millis();
- if ( now > next_release )
- {
- next_release = now + interval;
- Mouse.move( 100, 100, 0 );
- delay( 250 );
- Mouse.move( -100, -100, 0 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement