Closed Fischchen closed 4 years ago
That's a lot of strings you're using... maybe your Digispark is running out of SRAM? Try wrapping all of those DigiKeyboard.print/DigiKeyboard.println
strings (every single byte counts!) with F()
so that they're stored in Flash memory, instead of in SRAM.
i.e.
DigiKeyboard.println(F(" user32.dll,UpdatePerUserSystemParameters"));
instead of
DigiKeyboard.println(" user32.dll,UpdatePerUserSystemParameters");
If you use https://github.com/ArminJo/DigistumpArduino, which is a much more up to date board support package, you'll get a PR I did a while back which added the maximum SRAM value to the compile output, and you'll most likely get an error message indicating you've used it all up. ;)
Thanks now it work!!!
Hey guys, I have a problem: I've written this code for my digispark rev.3: