New answers tagged library
0
votes
Wire.h not found!
I copy here the answer from https://forum.arduino.cc/t/wire-h-no-such-file-or-directory-solved/297761, cause it worked for me:
It's not enough to put "#include <Wire.h>" in the source ...
7
votes
Accepted
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 ...
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....
Top 50 recent answers are included
Related Tags
library × 524arduino-uno × 100
arduino-ide × 61
programming × 54
c++ × 50
arduino-mega × 24
class × 24
esp8266 × 23
serial × 22
sensors × 20
arduino-nano × 18
adafruit × 18
compile × 18
timers × 17
esp32 × 16
lcd × 16
compilation-errors × 15
i2c × 13
ide × 12
core-libraries × 12
display × 11
wifi × 10
pins × 10
spi × 10
c × 10