I wonder what the best way to expose this is - I'm actually thinking via JS modules rather than built into the firmware. Generally there's a lot of configurability and for the few lines of JS I think it's best to leave it flexible (also to avoid folks having to update firmware!).
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.
There's some other functionality too - like step counting. All detailed at https://www.st.com/resource/en/application_note/dm00472670-lsm6ds3trc-alwayson-3d-accelerometer-and-3d-gyroscope-stmicroelectronics.pdf
I wonder what the best way to expose this is - I'm actually thinking via JS modules rather than built into the firmware. Generally there's a lot of configurability and for the few lines of JS I think it's best to leave it flexible (also to avoid folks having to update firmware!).