Annoyingly I am pretty sure that the 40x4 is classed as 2 40x2s top and bottom... It would have been nice if they were classed as 2 20x4s, left and right. Then I might have found a use for this... As it is, I think it's pretty useless but interesting...
Would mean that I could do a 2 line bargraph visualiser on the bottom and custom characters on the top though
I have not tried your proposed code but it looks like it will work. My 40x4 was being a pain last time I used it so I left it for a bit and moved onto removing outliers from my ultrasonic range finder code.