• 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).d­rawString("CANCEL",w-10,h/3.4);
      g.setFont("6x8",2).setFontAlign(0,0,1).d­rawString("SAVE",w-10,h/1.65);
      g.setFont("6x8",2).setFontAlign(0,0,1).d­rawString("EXIT",w-10,3*h/3.4);
      updateScreen();
      
    

    1 Attachment

    • smudged.jpg
About

Avatar for sp @sp started