Author Topic: Issue with keyboard  (Read 3111 times)

Andersonelijah

  • Newbie
  • *
  • Posts: 4
Issue with keyboard
« 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?

RC Navy

  • Jr. Member
  • **
  • Posts: 54
  • When you like, even too much, it is not enough!
Re: Issue with keyboard
« Reply #1 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...

Andersonelijah

  • Newbie
  • *
  • Posts: 4
Re: Issue with keyboard
« Reply #2 on: November 26, 2016, 07:30:23 pm »
Is their a way I can clear this up? Like a flush?

Andersonelijah

  • Newbie
  • *
  • Posts: 4
Re: Issue with keyboard
« Reply #3 on: November 26, 2016, 07:31:44 pm »
Just to clear the memory, or the buffer. Something, if this is possible let me know