Thanks for that. The test harness is basically using the same code that the step counter is using ? So I was scratching my head and realised that my javascript version does
function onAccel(a) {
var m = a.mag;
Hence wondering if a.mag comes from the accelerometer chip or its calculated in the 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.
Thanks for that. The test harness is basically using the same code that the step counter is using ? So I was scratching my head and realised that my javascript version does
Hence wondering if a.mag comes from the accelerometer chip or its calculated in the firmware ?