Go Down

Topic: Accessing classes created in main sketch from a library (Read 279 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy