How to write new display drivers

Writing a new driver for lcd4linux is quite easy, if you follow these steps:

 svn cp drv_Sample.c drv_<yourname>.c
 
extern DRIVER drv_Sample;

#ifdef WITH_SAMPLE
    &drv_Sample,
#endif
if test "$SAMPLE" = "yes"; then
   # select either text or graphics mode
   TEXT="yes"
   GRAPHIC="yes"
   # support for GPIO's
   GPIO="yes"
   # select bus: serial (including USB), parallel or i2c
   SERIAL="yes"
   PARPORT="yes"
   #I2C="yes"
   DRIVERS="$DRIVERS drv_Sample.o"
   AC_DEFINE(WITH_SAMPLE,1,[[:Sample|driver]])
fi

If your display uses text mode only, remove the GRAPHIC=“yes” line. If it's a graphic one, remove TEXT=“yes”. If you don't have GPO's, remove the GPO=“yes”. Same goes for serial or parallel port. Do not use I2C unless you've been talking to us and you know what you're doing. If your display uses USB, it's either a serial one (using /dev/usb/tts/0 or /dev/tts/USB0 or something), so use the serial subsystem. If it's a real USB display, you want to use libusb, which makes things a bit more complex. Please drop us an email in this case…

It's easy, believe me!