Thanks for that (sorry for the duplicate DM, thought it better to ask in forum). There is some simpler code from Daniel Thompson which might be easier to include. I think the BMA421 needs priming with a binary blob before initialising, which takes more steps.
I'm more nervous about modifying the 'firmware' Espruino build at the moment, because I have no way to recover a bricked device. Rewriting in JS would be time consuming, and also make it harder to keep up with any changes upstream.
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.
Thanks for that (sorry for the duplicate DM, thought it better to ask in forum). There is some simpler code from Daniel Thompson which might be easier to include. I think the BMA421 needs priming with a binary blob before initialising, which takes more steps.
I'm more nervous about modifying the 'firmware' Espruino build at the moment, because I have no way to recover a bricked device. Rewriting in JS would be time consuming, and also make it harder to keep up with any changes upstream.