ahh...yes... I thought I must have missed something crucial! :)
function update(options) { if (options && options.height) { initCmds[4] = options.height-1; initCmds[15] = options.height==64 ? 0x12 : 0x02; flipCmds[5] = (options.height>>3)-1; } }
Line 3 should be:
initCmds[3] = options.height-1;
...and won't that break backwards-compatibility? I think if no options are set you should create one and default in options.height = 64.
@Chris started
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.
ahh...yes... I thought I must have missed something crucial! :)
Line 3 should be:
...and won't that break backwards-compatibility? I think if no options are set you should create one and default in options.height = 64.