Go Down

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


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!



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, ...)
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

Go Up