Hi all,
There is a problem I see with the current (default Arduino) API.
Say I have an LCD, so I use the LCD library. But it allows only a direct connection of the LCD to the Arduino board pins. Because I have a lot of other IO happening on my project I have rigged in some shift register chips and need to address the LCD in a different way.
So because the LCD (and almost all other libs) both implement the protocol and the physical layer in one library, I am stuck.
What I seek is a modular system where I can plug in different objects on top of one-another that each only servers exactly one goal. So for example, I would have a Hardware Pin dirver object that can be used by a bit shift object, that can be used by a SPI protocol object that can be used by a LCD functional object that can be used by my program.
In my head (at this time) I think of them as templated C++ classes that allow some sort of chaining. You simply typedef the chains you need for your app and work with those types in the program/sketch.
So, before I embark on a long journey to write all this good stuff from scratch, does anybody know if something like this already exists?
I hope I made my point clear, if not, just ask.
Thanx,
Marc Jacobi
Netherlands