reference different display objects

I dont know how to declare 'distype' ?

Since paintlcd() is a function, it can only take one type. If the classes share a common base class, use can use that base class as the type. If not, you can't have one function that can use either device.

Post links to both libraries if you need help determining if they share a base class.