Problem with MEGA2560 using doglcd.h

I have been using a DOGLCD M163 16 x 3 display successfully on a Arduino Leonardo and just changed to a MEGA2560. I stripped the sketch down to doing a "HELLO WORLD" using digital pins 2, 3, 4, and 5 on both boards but the doglcd library doesn't seem to work on the MEGA2560. I created a sketch to toggle D2-D5 and checked it with an OSCOPE and it seems to work correctly on both boards. Has anyone solved this?

Bob

Does that display use SPI? The pins are different on the Leonardo and the MEGA...

CarlW: Does that display use SPI? The pins are different on the Leonardo and the MEGA...

No the library mimics the SPI-Protocol with bit-toggling. You are free to use any (4) digital IO-Pins of an Arduino.