Creating Circular Buffer lib

nick_p:
Does anybody have any tips for creating C libraries?

Get the code working right in a plain old sketch before you try to extract it into a library.