Closed JMare closed 4 years ago
You don't need to include tftspi.h directly. tft.h includes it inside the extern block. So you only need to include tft.h in your application and it will work fine. I used this library in a C++ project.
Ahh, got it, that did the trick! Thank you, closing this now.
Pretty much all in the title: While tft.h has extern c macros to allow calling from c++ main components, tftspi.h needs these tags so that TFT_PinsInit() and TFT_display_init() can be called from a project compiled as c++.