You are reading a single comment by @christian-nils and its replies. Click here to read the full conversation.
  • Hi again,

    I was able to activate and configure the FIFO buffers directly with JS. Because I do not have much time at the moment, one of my colleagues (much more skilled as well) is currently doing the implementation.

    We are thinking about sharing the code with the community, do you have any requirements for its implementation to maximize its chances to be merged with the upstream repository?

    For now, Puck.accelOnFifo(samplerate) was created and is very similar to Puck.accelOn(samplerate) but uses the FIFO buffer and returns binary data (so it is not converted into a JS object). At the moment, the implementation was done in jswrap_puck.c but you may want it to be done in a separate module?

    EDIT: Sorry, I found the answer to my question https://github.com/espruino/Espruino/blob/master/CONTRIBUTING.md

    /CN

About