Hello All!
A few years ago someone wrote software for me. However, I recently started getting an error in the code when I tried to compile it.
Error: Compilation error: 'D7' was not declared in this scope.
Unfortunately, I can no longer reach the person who wrote the software. Does anyone know a solution?
D7 is part of Arduino language. So it should be defined.
Maybe some boards do not have it defined. What board did you select?
Is it the same board as you used earlier?
Sure but these IO-pin names like "D7" are not really standard.
Look up this tutorial to find which real IO-pin number this is on ESP8266-based boards like the wemos D1 mini
If it is not yet defined you can define it yourself by
I use ESPs for a lot of projects, and I am baffled as to why ALL of the board packages do not simply ALWAYS use the GPIO numbers silk-screened onto the boards. But the fact is, they don't. Sometimes it's the number screened onto the board, and sometimes it's the pin number on the little ESP module itself. Every time I use a new board, the first thing I do is verify the names of all GPIOs, as I've been bitten on the a** too many times by the illogical mapping.
Ok let's go on with a ping-pong game of short postings
which posting umber do you mean?
You should answer with a real hard riddle that creates a mimimum of 10 following up postings
Serial.print("ah you mean");
for (byte i = 0; i< 3; i++) {
Serial.write(char(mychars[i]-1) );
}
Serial.println();
for (byte i = 0; i< 4; i++) {
Serial.write(char(mychars2[i]-1) );
}
Serial.println("! why are you afraid of clear writing?");