The purpose of this repository is to replicate the work of Elliot from 'Embed with Elliot' in a more portable and generic format that would be useful beyond Arduino.
One minor improvement in functionality is that this buffer will use the entire buffer whereas the original library used one less buffer.
Have a look at the original repository along with the accompanying article.
Additional information specific to this library and the differences between it and Elliot's original work may be found at forembed
Library is 100% tested using TravisCI tools. Thanks, guys!
Copy the *.h and *.c file into your project. Compile and enjoy.
An example 'basic_example.c' is contained in the 'examples' directory.
Assuming an 8-element circular buffer:
Currently, arrays of different widths have their own functions such as BUF_read8()
and BUF_write8()
for
each width. I would like to remove this necessity in future iterations of the library.