Turn a dial to scroll up and down, and press a button to type a single character.
-
Teensy LC (Teensy 3.2 should work also)
-
rotary encoder with pushbutton, like this one
-
micro USB cable
You don't need to install anything to use the dial as a scroll wheel / keyboard. To load new firmware onto the teensy, you will need to:
-
Install the Arduino IDE. You must install the offline IDE version, instead of using the online "Arduino Create" tool.
-
Install the Teensyduino add-on to the Arduino IDE, to support the
Teensy LC
board. This should install the required teensyEncoder
andBounce
libraries, as well. -
Connect the device to the computer with a USB cable, if it wasn't already plugged in.
-
Launch the Arduino IDE.
-
Open the file
dial-scroll-wheel.ino
. -
In the menu bar, select
Tools -> Board: -> "Teensy LC"
. -
Select
Tools -> USB Type: -> "Serial + Keyboard + Mouse + Joystick"
. -
Go to
Tools -> Port
and select which port the device is connected to. The port name will vary, but might look something like/dev/cu.usbmodem*
on a Mac, or/dev/ttyACM*
in linux. You can check by unplugging the device and seeing which entry in the port list disappears. -
Compile and load the firmware by clicking the round arrow button, or by selecting
Sketch -> Upload
in the menu bar. Look for messages printed in the bottom part of the window. If the upload was successful, you can now use the reconfigured device.