EasyManuals Logo

sparkfun Pro Micro User Manual

sparkfun Pro Micro
27 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #20 background imageLoading...
Page #20 background image
Mouse.move(x, y, wheel) tells the computer to move the mouse a
certain number of pixels along either the x, y and/or wheel axis. Each
variable can be any value between -128 and +127, with negative
numbers moving the cursor down/left, positive numbers move the
right/up.
Mouse.press(b) sends a down-click on a button or buttons. The
button(s) will remain “pressed” until you call
Mouse.release(b) . The
b variable is a single byte, each bit of which represents a different
button. You can set it equal to any of the following, or OR (|) them
together to click multiple buttons at once:
MOUSE_LEFT - Left Mouse button
MOUSE_RIGHT - Right Mouse button
MOUSE_MIDDLE - Middle mouse button
MOUSE_ALL - All three mouse buttons
Mouse.click(b) sends a down-click (press) followed immediately by
an up-click (release) on button(s)
b . For example, to click the left
and right buttons simultaneously, try this:
Mouse.click(MOUSE_LEFT|MOUSE_RIGHT);//Pressandreleasetheleftandrightmousebuttons
Here’s some example code to show off these functions:
Page 20 of 2
7

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the sparkfun Pro Micro and is the answer not in the manual?

sparkfun Pro Micro Specifications

General IconGeneral
MicrocontrollerATmega32U4
Operating Voltage5V
Input Voltage5-12V
Digital I/O Pins12
PWM Channels5
DC Current per I/O Pin20 mA
SRAM2.5 KB
EEPROM1 KB
Dimensions1.3 x 0.7 inches
Analog Input Channels4
Flash Memory32 KB (ATmega32U4)
Clock Speed16 MHz

Related product manuals