Digistump Forums
The Digispark => Digispark (Original) Support => Topic started by: Andersonelijah on November 25, 2016, 06:51:34 pm
-
http://pastebin.com/nejV5mZq
This is my code, when I uncommented the code at the bottom, the script no longer works, I have tried hours and hours of troubleshooting
Anyone here know what is up?
-
Hi,
you probably run out of RAM.
Each time you print() something, the message to print eats some RAM.
Replace all DigiKeyboard.print("blabla") with DigiKeyboard.print(F("blabla")), this will force the string to be stored in Flash rather in RAM.
I hope DigiKeyboard.print() supports the F() macro, not tested...
-
Is their a way I can clear this up? Like a flush?
-
Just to clear the memory, or the buffer. Something, if this is possible let me know