Arduino: Can import library in ino, but not in C++
问题 I'm trying to use a UTFT library in Arduino. If I work with a single .ino file and include the library there, everything works fine, like this: example.ino #include <UTFT.h> UTFT myGLCD(QD220A,A2,A1,A5,A4,A3); ... However, if I create a .cpp and a .h file, like this: example.h #include <UTFT.h> example.cpp #include "example.h" UTFT myGLCD(QD220A,A2,A1,A5,A4,A3); ... I get an error: UTFT does not mean a type If I copy the whole TFT library to the project directory, and use #include "UTFT.h" in