New answers tagged

0 votes

Wire.h not found!

I copy here the answer from, cause it worked for me: It's not enough to put "#include <Wire.h>" in the source ...
steph643's user avatar
  • 101
7 votes

is #ifdef __SD_H__ considered a bad practice?

Yes, it is in general a bad practice to use include guard define to detect if the header file is included. It will work only in a header file in a compilation unit which includes the detected header ...
Juraj's user avatar
  • 17.7k
2 votes

is #ifdef __SD_H__ considered a bad practice?

I don't think this will work, however you could try it and see. Just set the board type to something that doesn't support SD.h. My problem would be that your library is a separate compilation unit (ie....
Nick Gammon's user avatar
  • 37.9k

Top 50 recent answers are included