You are reading a single comment by @jgw and its replies. Click here to read the full conversation.
  • That's great. Also, the KX023 datasheet mentions to clear the PC1 bit before changing some/all registers, so the thing I did is :

    var tmp = Bangle.accelRd(0x18);    // CNTL_1
    Bangle.accelWr(0x18,[tmp & 0x7F]); // Clear PC1 bit : reset state
    Bangle.accelWr(0x1E,[0x3F]);       // INC3 : enable X,Y,Z axis interrupts
    Bangle.accelWr(0x18,[tmp | 0x80]); // Set PC1 : start accelerometer with new settings
    
    
About

Avatar for jgw @jgw started