From: Michael R. <re...@eu...> - 2006-10-02 15:27:02
|
Hi Reinhard, > In our appliance, we need some way to access the buttons near our lcd > display. Luckily, we found that in drv_HD_LCM162_timer, there is already > some checking done fore keypresses. So all I needed to to was to call a > function which sends some udp packages. Obviously, this only works on > LCM162 devices. Oh well... > > > The patch I use for that is included below. There are some unresolved > problems with it: > > - the portnumber (and perhaps the hostname) should be configurable > - the format string could be configurable > - documentation is lacking > > what do you think about this patch? perhaps it could be integrated > better with the GPIO or some other driver, but I don't understand the > code enough. > > As said, we needed a simple solution for accessing the buttons on our > LCM162 display. would be great if this patch could be merged in a more > generic form... Well, I do like the ide, but I don't like your patch :-) There's already a generic keypad widget, which is used by some other display (I don't remember which one at the moment), and should be easy to integrate into the HD44780 driver. With this generic widget, you can specify any expression which will be evaluated at key press. So I want YOU to write a generic UDP send plugin :-) bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |