LiquidCrystal library

wilykat:
So it may need work if I wanted to use 4x40, probably the largest standard character LCD around? The 4x40 has 1 extra pin, an extra enable to control the second H44780.

I think if you treat the two controllers as two separate LCD interfaces it should work fairly easily.