What solved the problem with my display was the changed init sequence. Mine works fine without the delay.
In order to account for the slow power-up of other displays, the module could accept another parameter delay in the connect function... but then the connect would become asynchronous and developers would still have to make sure they don't use it before it's ready, so the complexity remains. Maybe a hint in the documentation is enough instead.
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.
What solved the problem with my display was the changed init sequence. Mine works fine without the delay.
In order to account for the slow power-up of other displays, the module could accept another parameter
delay
in theconnect
function... but then the connect would become asynchronous and developers would still have to make sure they don't use it before it's ready, so the complexity remains. Maybe a hint in the documentation is enough instead.