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
@jgw started
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.
That's great. Also, the KX023 datasheet mentions to clear the PC1 bit before changing some/all registers, so the thing I did is :