I am struggling how to use a class that I defined in a .cpp file.
I am using Arduino IDE 1.8.15, the sample test project that I have created compile fine but the linker complain.
I have tryed to create a folder in the arduino library folder named it "MyClass" and inside I have put two files: MyClass.h and MyClass.cpp. Then I have created a test.ino sketch where I have instantiated an object of type MyClass and used a class method inside the setup function.
Can you help me to find where is the error?
test.zip (786 Bytes)