• Teensy 3.1 The Teensy 3.1 is a tiny PCB board (35 x 18 mm) with a lot of hardware functionality. It can be programmed with the same developer environment as an board. Among the features of the Teensy is the capability of the microprocessor to emulate USB devices. Programming To program the Teensy's processor you need a micro USB cable and you have to install: • The Arduino compiler version 1.67. () • The TeensyDuino libraries () Direct links to version 1.27:,,, The source code has to be written in C and the firmware that you write for the board is named a ' Sketch'. You have to configure the compiler like in this screenshot: You can also use the option ' Serial + Keyboard + Mouse + Joystick' which will add an USB virtual COM port to the keyboard, mouse and joystick devices. Problems with the actual version TeensyDuino 1.27 When you have installed and configured the compiler you can already start writing code that emulates keyboard, mouse and joystick. VIP-411 / 412 'SmartAe' Switch Closure to RS-232 Serial Encoder. Vetra's USB and PS/2 PC Keyboard Encoders / Emulators make it easy to interface custom. You will find several example projects already installed on your harddisk (see menu 'File' -> 'Examples'). But there is a severe problem with the original code from TeensyDuino 1.27: The mouse emulation does not work on Linux. The cause is a severe design error in the Linux X11 server which is full of bugs and misdesigns. The X11 server does not accept a USB mouse device that sends absolute coordinates. But if you want to position the mouse at an exact location on the screen, the mouse positioning with relative coordinates is useless for several reasons: • As you don't know the current location of the mouse pointer on the computer that is connected to the Teensy you would have to first move the mouse to the top left corner of the screen and start a relative movement from there, which is ugly. • When the Teensy USB device tells the remote computer that the mouse has moved by 100 units it depends on the settings in control panel and on the operating system, how much the mouse really moves on the screen. It may move 53 pixels or 144 pixels!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2018
Categories |