The code by itself won't do it (if that's what you're trying?). You'd have to integrate it with the existing accelerometer app, copying it into the startRecord function to overwrite the existing accelHandler function: https://github.com/espruino/BangleApps/blob/master/apps/accellog/app.js
You'd also need to change the existing setWatch function from BTN2 to BTN3.
© Espruino, powered by microcosm.
Report a problem