Thanks a lot Gordan!
However when I try to display the max accel X and max accel Y values they appear smudged as shown in the photo below.
The code is as follows:
function updateScreen() {
g.reset();
g.clearRect(0,h/2 - 20,w-20,h/2 + 20);
g.setFontVector(40).setFontAlign(0,0);
g.drawString(x1.toFixed(2),w/3,h/3.2);
g.drawString(y1.toFixed(2),w/3,h/1.4);
}
// display
g.clear(1);
Bangle.drawWidgets();
g.reset();
var w = g.getWidth();
var h = g.getHeight();
g.setFont("6x8",2).setFontAlign(0,0,1).drawString("CANCEL",w-10,h/3.4);
g.setFont("6x8",2).setFontAlign(0,0,1).drawString("SAVE",w-10,h/1.65);
g.setFont("6x8",2).setFontAlign(0,0,1).drawString("EXIT",w-10,3*h/3.4);
updateScreen();
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.
Thanks a lot Gordan!
However when I try to display the max accel X and max accel Y values they appear smudged as shown in the photo below.
The code is as follows:
1 Attachment