Ive created a project called Semaforo.ino. I added a tab inside of the project called Flasher. I thought I could import the class by using #include "Flasher.h" but I get the compile error that the Flasher file doesnt exist. Here is what it looks like:
Here is the code:
Flasher led1(12, 100, 400);
Flasher led2(13, 350, 350);
what does the header file look like? it looks like it is named Flasher, not Flasher.h
When you create a tab if no extension is specified the Arduino IDE gives the file a .ino extension and the file is concatenated to the main sketch file before compilation. If you want the tab to have a different extension (.h, .cpp, .c, .S, .hpp, etc.) You need to specify that extension in the tab name when you create it (in this case Flasher.h).