... The other option is actually to unroll the whole of updateRow, and update all rows at once and then turn the display off. It won't be as bright (might be better off 5v?) but it'll probably leave more time for doing other things, and the display won't 'glitch' if you spend a while calculating out what the next frame will be.
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.
... The other option is actually to unroll the whole of updateRow, and update all rows at once and then turn the display off. It won't be as bright (might be better off 5v?) but it'll probably leave more time for doing other things, and the display won't 'glitch' if you spend a while calculating out what the next frame will be.
Also, change
to
That'll save you some time as well ;)