I am using the UTFT library, which you can find here:
I have a base class called MinMaxScreen, which draws up some general screen for setting the required minimum and maximum values. Then I have a derived class Called TempScreen, it too draws the min and max required levels. However here I would like to draw an extra calibrate button. The problem is that when setting and drawing the buttons with this library I cannot share the instance of the UTFT class with the derived class. I have to set the UTFT class always in the .cpp file like this:
UTFT MM_myGLCD(ITDB32S, 38,39,40,41); UTouch MM_myTouch(6,5,4,3,2); UTFT_Buttons MM_myButtons(&MM_myGLCD, &MM_myTouch);
Outside of the class, just sitting there as a global for that file. How can I share this instance with many classes?