You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi!

    Right now you get a value at 12.5 Hz I believe - you can raise the poll interval but you won't get more data until you reconfigure the accelerometer with Bangle.accelWr.

    The accelerometer itself is the KX023 - more info about internals here as well as a link to the datasheet if you want more specs on the device: https://www.espruino.com/Bangle.js+Techn­ical

    Perhaps a good example of messing with the accelerometer is the acceleration recorder: https://banglejs.com/apps/#accelrec

    Code is here, and it might give you some clues about how to set it up for high speed capture: https://github.com/espruino/BangleApps/b­lob/master/apps/accelrec/app.js#L36

    g.drawString() and g.drawLine() commands take a lot of time

    It depends - they can take a decent amount of time, but in general the JS execution speed isn't great either so that could be hitting you.

About

Avatar for Gordon @Gordon started