t = getTime();
g.setFontDennis8();
g.drawString(texte,compteur,0);
console.log("Draw took ",getTime()-t);
1v92 FIRMWARE
with custom font like setFontDennis8 : 0,244
with custom font simplified : 0,239
with custom font like setFontDennis8 + E.toString() : 0,154
with custom font simplifed + E.toString() : 0,155
1v92 CUSTOM FIRMWARE
with custom font like setFontDennis8 : 0,106
with custom font simplified : 0,106
with custom font like setFontDennis8+ E.toString(atob) + : 0,094
with custom font simplified + E.toString(): 0,094
therefor best result with:
. custom firmware
. E.toString()
. nothing more with simplified font (only usefull char design)
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.
@Gordon
timing test
1v92 FIRMWARE
with custom font like
setFontDennis8
: 0,244with custom font simplified : 0,239
with custom font like
setFontDennis8
+E.toString()
: 0,154with custom font simplifed +
E.toString()
: 0,1551v92 CUSTOM FIRMWARE
with custom font like
setFontDennis8
: 0,106with custom font simplified : 0,106
with custom font like
setFontDennis8
+E.toString(atob)
+ : 0,094with custom font simplified +
E.toString()
: 0,094therefor best result with:
. custom firmware
.
E.toString()
. nothing more with simplified font (only usefull char design)