I want to include a function in my sketch I moved to a .h file.
I did it as follows:
My code:
#include "header.h"
void setup() {
fct();
}
void loop() {
}
My header:
#include "Arduino.h"
#ifndef MYHELPERS_H
#define MYHELPERS_H
void fct() {
// stuff
}
#endif
The same process seems to work for variables but the IDE says this function in not declared in this scope...
I don't understand what I'm doing wrong...
Thanks guys!