Hello my fellow nerds.
TL;DR version:
How well does the Teensy 3 + Teensyduino work for keyboard emulation? As I understand it, it can be programed just like a regular Arduino? Is that correct? Did anyone try to talk to the board with a custom software, ie, written by your self?
The long version:
I'm working on a project here, the idea is to have a multi-purpose, keyboard emulating, 48 keys panel to have radio commands to talk to the AI.
They way it works is you slide a printed... erm, slide? on top of the keys with the layout you want for a specific game and you also have a profiling software that lets you create and load said profile to the thing. You know, like any other joystick: you have one for Falcon, one for IL-2 and so on and you load them before you play.
Originally I thought on using an Arduino Leonardo because that's what I have more experience with and it emulates a keyboard just fine and I want an all-hardware approach (no need for drivers, HID device as seen by the OS and games, you know it's gonna work anywhere even with old games)
Now, the problem is memory. The profiling "language" I created is quite neat if say so my self, it allows you to do simple stuff like specify a single key press, a sequence of keys, delay, assigns variables and evaluate them later on... I got a little carried away :), but the bottom line is, the device needs memory to store all this information for each of the 48 keys.
I wrote a profile for Falcon BMS and it's something like 350 bytes + some 20 for the variables table and some extra for indexes and stuff, but I wouldn't bet on it staying that small...
The Leonardo has 2.5 KB of RAM, which is simply not enough to guarantee that all the info I need to store will actually fit. I solved that by using an SD card as memory (with the added benefit that it doesn't get erased when you power off), but I then discovered this Teensy thing and it's got 64 KB of RAM... and that's sexy as hell.
So I was wondering... since I have another panel on my mind for the near future, what I were to use a Teensy instead of a Leonardo? I really like how the Arduino works, so I wouldn't want to switch to something different only for the RAM...
BTW, before you answer "you should try X product". Maybe I should, but I can't
Very limited availability of products you know... third world and all that stuff. Lucky I can get the Leonardo and the Teensy.
(Told you it was the long version!)