16
TinyDuino Processors & TinyShields / Re: Need help creating Library
« on: January 18, 2016, 07:47:55 PM »...Thanks for reminding me that the include issue should be a "once per compilation unit" problem. Finally, thanks to your prodding, I realized that in my library's .cpp file, I had my includes in the wrong order -- I first had the library's .h file, so naturally, the "TinyScreen" type was unknown at the time. Once I put TinyScreen.h first, those errors went away.
I would guess that including the tinyscreen-header at the top of your ino file, AND including it at the top of the cpp file for your library would do the trick perfectly, since by doing so the same header file would not be included twice in the same cpp file. (Or you could add the include guards in the tinyscreen header file to avoid redefining the symbols in case the header file would be included twice)