Yes, I think it's just execution speed. Not using constants (use 1, not high) and stuff like that helps... As does minimising whitespace! Just stick that function in a minifier and see if it helps :)
Unravelling updateRow would just reduce the overhead of executing functions and checking for the next thing to execute - I think it might help a bit.
For 5v, can't you just use the jumper that powers the 5v like from VBat, and then power off USB? That should help a lot - and I don't think you should need any resistors?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, I think it's just execution speed. Not using constants (use 1, not high) and stuff like that helps... As does minimising whitespace! Just stick that function in a minifier and see if it helps :)
Unravelling updateRow would just reduce the overhead of executing functions and checking for the next thing to execute - I think it might help a bit.
For 5v, can't you just use the jumper that powers the 5v like from VBat, and then power off USB? That should help a lot - and I don't think you should need any resistors?