Digispark and DigiKeyboard.h

Hello.

I purchased a Digispark board with the ATTINY 167 chip.
I tried to create a .ino script using the Arduino IDE.

My meaning was to imitate a keyboard with the help of the "DigiKeyboard.h" library, but ran into problems when trying to print multiple rows.

The compiler does not mention any errors and I can print these lines separately, but when I do multiple lines in a row the outcome is not what it is suppose to be.

My code looks something like this ("..." means a line with maximum 145 characters):
DigiKeyboard.print("...");
DigiKeyboard.print("...");
DigiKeyboard.print("...");
DigiKeyboard.print("...");
DigiKeyboard.print("...");

Each of these lines works fine on their own, even three at a time, but when doing all at once the output from the beginning is random (only 10-15 characters) and after that is the 2 final lines of printed text. (last line also misses some parts).

Has anyone stumbled upon this or do you have any suggestions on how to get these boards working the way I want them to work?

My guess is some kind of buffer overflow caused by all of the lines being given at once, not one by one.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.