My code is quite big so I will just show you the idea:
MyFile.h:
#include <Wire.h>
MyFile.cpp
#include "MyFile.h"
#include <Wire.h>
void myFunction(){
Wire.begin();
}
the error is :
error: 'Wire' was not declared in this scope
My code is quite big so I will just show you the idea:
MyFile.h:
#include <Wire.h>
MyFile.cpp
#include "MyFile.h"
#include <Wire.h>
void myFunction(){
Wire.begin();
}
the error is :
error: 'Wire' was not declared in this scope