From: Michael R. <re...@eu...> - 2007-01-16 20:06:41
|
Hi Luis, >> OTOH, if you like to have your 'own' driver, we could do so; >> but they would share some common code... maybe we could >> backport your changes later... just let me know what you prefer. > > what I had in mind was something even less stressfull but maybe hard > to make. and it is split the HD44780 driver even further so that > the actual 'bus' connection is fully separated from the HD44780 core. > > which would make things like supporting different connections even simpler You are right, I've been thinking about such a solution, too. But let's do this after a 0.10.1 (or 0.11) has been released :-) OTOH, different HD44780 drivers do not share that much code.. If I think about the various USB2HD44780 adapters, the only thing in common is the display ram addressing scheme, and some CGRAM stuff. But with USB you don't care about 4/8 bit, timings, wirings, and all that stuff that makes the current HD44780.c *that* complicated. Probably it would be easiest just to split the driver into bus-dependant parts, and don't care about the common code. As a second step, take the HD44780 drivers that are already extra files into account, and look for common code, and try to find a clean and simple way to unify it. For the time being, I'll implement the "HD44780-I2C" configure option; which may be removed again. bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |