Replace the contents of your main sketch file with the following code: E.g., we will now use the sin() and cos() functions to move the mouse pointer in circles.
Go to the Arduino Project page and switch USB Type to Keyboard + Mouse + Joystick:.Right-click in Solution Explorer and open VisualGDB Project Properties:
We will now demonstrate how to use the board to emulate a USB mouse.
Download and install the Teensy Package for Arduino.Hence, ensure you have it installed before following this tutorial.
We will show how to install support for Teensy targets into the existing Arduino IDE installation and how to use VisualGDB to create and analyze advanced projects for the Teensy platform.Īlthough we will not use the Arduino IDE to create the projects, the Teensy platform installer requires it before it can unpack the Teensy specific files.
This tutorial shows how to target the Teensy board with Visual Studio.