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?
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.
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 toPuck.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 injswrap_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