So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Cary
#63264 if the above is too much, this is the less verbose error message:

Arduino: 1.8.1 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

In file included from C:\Program Files\Arduino\libraries\TFT\src/TFT.h:37:0,

from C:\Users\Cary\Desktop\ESP8266 files\B05403_02_code\02\dht_esp8266\dht_esp8266.ino:2:

C:\Program Files\Arduino\libraries\TFT\src/utility/Adafruit_ST7735.h:30:26: fatal error: avr/pgmspace.h: No such file or directory

#include <avr/pgmspace.h>

compilation terminated.

Multiple libraries were found for "SPI.h"
Used: C:\Users\Cary\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SPI
Not used: C:\Program Files\Arduino\libraries\SPI
exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
User avatar
By Cary
#63276 I set it up they way it is described in the book "Internet of Things with ESP8266", by Marco Schwartz. He has similar instructions online.
The board was added to the IDE with the following:

"http://arduino.esp8266.com/stable/package_esp8266com_index.json"

Which seems to be standard.

I asked for help from the publisher and author. The publisher, Pakt, referred my query to Marco. He replied by asking :
"Just answered also to Packt :) Did you install the definitions from:
https://github.com/esp8266/Arduino"

I downloaded a file from Github called Arduino-Master, and copied the files into the Arduino folder in C:/ *****/appdata/local/arduino15/tools. Without further info I didn't know what else to do. I tried this with both the TOOLS and CORES sub-folders. When that didn't work I also copied them into the Arduino folder in C:/Programs. I have replied to Marco telling him what I have done and asking if I am on the right path, but no reply.

What confuses me is that I can compile some ESP8266 related sketches in the examples, but not others.

I'm not totally computer illiterate (I am old and pre-date even the first IBM PCs and Windows :-)) but this is foreign to me. I don't know if it is in the code, or something to do with the board and libraries