I fear this may an annoying question because of what I read in another post,
Is there another reference area that I am missing?
Google, perhaps ? The terms are not Arduino specific but relate to C and C++
I have googled. Problems: too vast, too specific (not applicable to my case), too advanced, poorly written English (or poorly understood)… When I did find something promising, a few lines in then I’m confused. So out of frustration, I risk being a nuisance by asking here.
I’ve been trying to use the IRremote and IRremoteESP8266 libraries, and have cut&pasted bits from examples, and now I can’t find the place I got this from:
#ifndef UNIT_TEST
#include <Arduino.h>
#endif
I read as much as I could from the link given in the above quote, which was really good because I had never heard of preprocessor directives before. So I’m glad that I know basically what they do, but that’s about it. I don’t want to go line by line with my deficiencies reading the documentation (assuming nobody wants me to, either), but if I could just ask for a brief For Dummies (or even For Abject Morons) explanation of what this code does I would be forever grateful. In particular, why is the #include<Arduino.h> needed? Most of the examples have that line, such as IRrecvDemo, IRsendDemo, and DumbIRRepeater (but those don’t have #ifndef #endif).
Thanks (or sorry)