You can look at the diff field of the accelerometer to get an idea of the difference in accelerometer readings, but at the end of the day it could be a little tricky to tell the difference between a moving train and someone reading a book on a moving train.
On Bangle.js 2 there are some 'internal' HRM values reported in the HRM-raw event that could definitely be used for detecting when it's worn though
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.
You can look at the
diff
field of the accelerometer to get an idea of the difference in accelerometer readings, but at the end of the day it could be a little tricky to tell the difference between a moving train and someone reading a book on a moving train.On Bangle.js 2 there are some 'internal' HRM values reported in the HRM-raw event that could definitely be used for detecting when it's worn though