From: Luis C. <lfc...@lf...> - 2005-03-27 20:55:35
|
Hi! (This email is mainly directed to Paul and Michael) during this small Easter break, I finnaly managed to take a deep look into the changes Paul has made to the HD44780 driver. Here is a small patch to the drv_HD44780.c file, and two new files that abstract all I2C relevant code from the main driver. To make this work at all, the ./configure scripts need to know about these new files. I'm not an expert with Makefiles, so Michael please help me with this one :)... Unpack the attached file, apply the diff and copy the 'drv_generic_i2c.[h,c]'. This patchset is completely untested, as I don't currently have any I2C devices available for testing. Paul, about the SIGNAL stuff, they are defined in the config file. For example, my PCF based I2C used the same connections as the 4bit driver, Martin has made. This is the corresponding config entry: Display HD44780-I2C { Driver 'HD44780' Model 'WRAP1C-PCF8574' Bus 'i2c' Port '/dev/i2c-0' Device '70' Bits '4' Size '20x4' asc255bug 0 Icons 1 Wire { RW 'DB5' RS 'DB4' ENABLE 'DB6' GPO 'GND' } } Basicly it is here where you say what is connected to where, although I'm not sure if it will work if it is wired differently then it is here... Take a good shot at it and let me know. Luis Correia, ashamed because it could not be tested... :( |