Surely a partial clear is just a fillRect with the background colour? I'm not sure I see the need for a whole extra function there?
And yes, pass true to getModified - after you've sent the changed area to the screen you want everything reset to 'unmodified' so you're ready for the next time...
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.
Surely a partial clear is just a fillRect with the background colour? I'm not sure I see the need for a whole extra function there?
And yes, pass
true
to getModified - after you've sent the changed area to the screen you want everything reset to 'unmodified' so you're ready for the next time...