Using class files in Arduino IDE


ive created project called semaforo.ino.  i added tab inside of project called flasher.  i thought import class using #include "flasher.h" compile error flasher file doesnt exist.  here looks like:




here code:

code: [select]
#include <flasher.h>

flasher led1(12, 100, 400);
flasher led2(13, 350, 350);

void setup()
{
}

void loop()
{
  led1.update();
  led2.update();
}

try

code: [select]
#include "flasher.h"

what header file like?  looks named flasher, not flasher.h


Arduino Forum > Using Arduino > Programming Questions > Using class files in Arduino IDE


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts