Hi,
Since I'm still stuck for my current project (waiting for my 433MHz RF link modules), I decided as a playtime to make the port the famous vintage TETRIS game for arduino. For now, it works fine in a arduino UNO through serial port at 115200 bauds: the children love it!


The principle consists in using ANSI escape sequences to locate the caracters and to color them in an ANSI-capable terminal such as minicom (under Linux).It may be possible to use Teraterm (Windows), but I didn't tested it. This means the arduino only sends ASCII characters to the PC and only receives ASCII characters such as 'K', 'J', 'L' ... from the PC. So, operation is very basic.
The arduino is the heart of the Tetris game and the PC is the GUI (ANSI Terminal).
Now, my question for the USB experts: with the current USB implementation in the Digispark, is it possible to redirect the data stream in an ANSI terminal?
Or, shall it implement the USB CDC class in order to present to the PC a virtual serial port? Is it doable?
In fact, I don't know if Tetris will fit in the Digispark program memory. Thus, before working on size optimisation, I prefer to know if USB will be usable for this usage.
Or, is there another way to achieve this?
Thanks for your attention,
RC Navy.