But ........ I have an App where sometimes (depending on the code) there is no drawing done, when I clear the getModified area, it blanks the screen, and that's not what I want.
I thought it would be more applicable if getModified(true) would be set to "nothing is modified, so nothing needs to be cleared" { x1: 0, y1: 0, x2: 0, y2: 0}. Or ....... it would be set to undefined, that's logical to me too.
I don't get the logic for resetting to the entire screen, am I missing something?
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.
Hi @Gordon, thanks for getting back to me.
Yes, your example works fine, as intended:
getModified
getModified
defines the "touched" area.But ........ I have an App where sometimes (depending on the code) there is no drawing done, when I clear the
getModified
area, it blanks the screen, and that's not what I want.I thought it would be more applicable if
getModified(true)
would be set to "nothing is modified, so nothing needs to be cleared"{ x1: 0, y1: 0, x2: 0, y2: 0}
. Or ....... it would be set toundefined
, that's logical to me too.I don't get the logic for resetting to the entire screen, am I missing something?