Go Down

Topic: Accessing classes created in main sketch from a library (Read 229 times) previous topic - next topic

Loren

I have this defined in my main library:

Code: [Select]
UTFT        myGLCD(ITDB32S, 38,39,40,41);

How do I access myGLCD from my Comms library (a Library that I wrote and is contained in my sketch folder);

Any help is much appreciated!

Loren

liudr

Define a begin method for comm class. The begin will take a TFT * argument among other arguments. Set up your tft object outside seyup($ and loop(), then in setup() call comm.begin(&myGLCD, ...)

Go Up