Articles Posted by the Author:

  • Mouse Controller

    Mouse Controller

    Mouse Controller The Arduino Due has the ability to act as a USB host for peripherals such as mice connected to the SerialUSB port. This example demonstrates the use of the MouseController library. Hardware Required -Arduino Due Board -USB mouse Code /* Mouse Controller Example Shows the output of a USB Mouse connected to the […]


  • getOemKey()

    getOemKey()

    Description Reports the OEM-code associated with a key pressed or released on a connected USB keyboard. Syntax keyboard.getOemKey() Parameters none Returns int : the OEM-code associated with the key being pressed Example See also - keyPressed() - keyReleased() - getModifiers() - getKey() Libraries Reference Home The text of the 86Duino reference is a modification of […]


  • getKey()

    getKey()

    Description Reports the ASCII value of a key being pressed or released on an attached USB keyboard. Syntax keyboard.getKey() Parameters none Returns int : the ASCII value of the key being pressed Example See also - keyPressed() - keyReleased() - getModifiers() - getOemKey() Libraries Reference Home The text of the 86Duino reference is a modification […]


  • getModifiers()

    getModifiers()

    Description Reports any modifier keys pressed or released on an attached USB keyboard. Syntax keyboard.getModifiers() Parameters none Returns int : a numeric representation of the modifier keys being pressed. Values for the keys are below : – LeftCtrl = 1 – LeftShift = 2 – Alt = 4 – LeftCmd = 8 – RightCtrl = […]


  • keyReleased()

    keyReleased()

    Description keyReleased() is a function that is called whenever a pressed key is released on a connected USB keyboard. Syntax void keyReleased() {   // statements } Example See also - keyPressed() - getModifiers() - getKey() - getOemKey() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is […]


  • keyPressed()

    keyPressed()

    Description keyPressed() is a function that is called whenever a key is pressed on a connected USB keyboard. Syntax void keyPressed() {   // statements } Example See also - keyReleased() - getModifiers() - getKey() - getOemKey() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed […]


  • KeyboardController

    KeyboardController

    Description KeyboardController is the class for all calls to the USBHost relating to an attached USB keyboard. Syntax KeyboardController keyboard(usb); Example Functions - keyPressed() - keyReleased() - getModifiers() - getKey() - getOemKey() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons […]



  • getButton()

    getButton()

    Description Reports the status of the requested mouse button. Syntax mouse.getButton(button) Parameters button : which mouse button is being requested; can be one of the following : -LEFT_BUTTON -RIGHT_BUTTON -MIDDLE_BUTTON Returns boolean : true if the requested button is pressed, false if it is not pressed. Example See Also - mousePressed() - mouseReleased() Libraries Reference […]


  • getYChange()

    getYChange()

    Description Reports the relative amount of movement of a mouse on the Y-axis since the last time polled. A positive number indicates downward movement, a negative number indicates upward movement. Syntax mouse.getYChange() Parameters none Returns int Example See Also - mouseDragged() - mousePressed() Libraries Reference Home The text of the 86Duino reference is a modification […]