PaulS:
I can't see the original morse code, so, we're even.
haha touché ![]()
umm.... u really should learn a bit more about object oriented programming in c++ before you tackle Arduino libraries. Arduino libraries are typically implemented as c++ classes. There are good reasons why you would want to put things into classes & u need to evaluate if your need for "organizing code" falls in that land.
Google for "C++ classes tutorial" or try this one http://cplus.about.com/od/learning1/ss/cppobjects.htm
if you are merely looking to keep related function definitions "organized" in different source files, you can always create <filename>.cpp containing the function defs & <filename>.h file containing the function declarations and #include "<filename>.h" in both your .ino sketch & <filename>.cpp files. There are some gotchas in this approach also (variable scope & the like) and again you need to read up more.
I finally figured it out. It was pretty straight forward once I tweaked the code a bit here and there.
I'll post a download link of the library together with a couple of examples when I'm done with it ![]()
I think some people will find it pretty useful ![]()