dreamgame:
Optimization? Look to fmalpartida's NewLiquidCrystal.https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
8 bit, 4 bit, I2C, ShiftOut and even a mode with one pin. And three times faster than the original LiquidCrystal library.
While there are a few low level 1 pin shiftout support routines, there isn't an interface class in
place to use it yet. So for now, you have to use 2 pin or 3 pin mode when using a shift register
unless you write your own 1 pin interface class.
--- bill