Nice library structures

Creating librarys and other supportfiles isnt very hard. But doing it in a readabe manner is harder. How does it look correct and nice? Is there coding standard for the Arduino?

I use structs in my own library functions and notices the lack of overview in the .h file. Somebody with a tip?

What do you mean by “lack of overview”?

Im usally trying to group functions and structs to give the user some overview. I rather adopt an existing structure, if there is one (or two).

I don't know if either of these are good suggestions but here goes...

  • I try to group things by the task the user will be trying to perform.
  • Study the source code in {Arduino Root}\hardware\cores. I suspect there are some examples there.
  • Post your header to the forum and ask for comments. I suspect you'll get good advice.