Digistump Forums

The Digispark => Digispark (Original) Support => Topic started by: Andersonelijah on November 25, 2016, 06:51:34 pm

Title: Issue with keyboard
Post 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?
Title: Re: Issue with keyboard
Post by: RC Navy on November 26, 2016, 03:47:40 am
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...
Title: Re: Issue with keyboard
Post by: Andersonelijah on November 26, 2016, 07:30:23 pm
Is their a way I can clear this up? Like a flush?
Title: Re: Issue with keyboard
Post by: Andersonelijah on November 26, 2016, 07:31:44 pm
Just to clear the memory, or the buffer. Something, if this is possible let me know