change LCD nokia 5110 display for a Oled spi

i have a working sketch (modified mpguino) with a nokia 5110 display, now I will change that to a Oled display.

but i.m not sble to get it working…

see also attached sketch

the sketch also works only in IDE 1.0.5 in the newer 1.6.5 version a lot of errors

I will use the final (working) version on my motorcycle Yamaha Tmax 500, but maybe also usefull for other bikes?

best regards, Wim

MPG_V086_modified.ino (40.5 KB)