You are reading a single comment by @sp and its replies. Click here to read the full conversation.
  • I've set the Min and Max values but still I'm not getting the value to display.
    Below is my modified code, what's wrong with this, there is no hand on display;

    try {
     function accelHandler(accel) {
      if (accel.z > maxZ) {
          maxZ = accel.z.toFixed(2);
        }
        
     
        drawHand(Math.round(accel.maxZ));
       layout.render();
      }
       Bangle.setPollInterval(80);
      Bangle.on('accel', accelHandler);
    
    
    } catch(e) {
      print(e.message);
       print("value exceeds limits");
        drawHand(MIN);
    }
    
About

Avatar for sp @sp started