As you know, Teletype currently does not support hubs - writing scripts for your Monome or DIY Grid requires using the internal grid simulation, changing cables or some kind of USB switch.
So it might be interesting for some of you, that it is actually quite easy to create a little add-on which allows you to live code your Grid with a keyboard, without switching. This add-on can be put in a little box, or in a 2HP module.
My wireless (dongle) USB keyboard is connected not into the Teletype`s USB port, but to a simple Arduino Pro Mini (328P / 3.3V / 8Mhz) with a Mini USB host shield (~ $10 in total).
The Arduino is forwarding key presses coming in by USB over the II bus to the Teletype. If you put this into a 2HP module, you could wire it directly - I am using a 3.5mm TRP stereo cable into the TxB expander, like the Fader bank.
Once I cleaned up the code, I will publish a patch to the official firmware and/or Github link below, but the required code is actually pretty minimal. A few lines need to be added to the Teletype’s firmware. At start up it checks, if the II keyboard interface is present. If not, it behaves 100% as usual. If present, it polls the Arduino via II at about the same rate, as the internal keyboard would be checked, and then launches the existing keyboard routine.
The code on the Arduino is a simple input buffer plus I2C request handler.
I am not sure if Teletype programmers can give me a free II address for this device, but it would be possible to change it easily. Currently I am using 0x75.
Thank you all, and keep up the good work
P.S. As a side effect, this allows the use of USB keyboards with integrated hubs.
P.P.S. A similiar approach could also be used to connect Grid & Arc to the Teletype at the same time, without Ansible (assuming direct Arc support would be added at some later point), or connecting a DIY Neotrellis grid to the Teletype without the additional FTDI adapter (https://github.com/mcleinn/neotrellis-monome-for-teletype-via-ftdi)