Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Sunspot
#20162 Sorry - seems there must be a way of adding all the .h and.cpp files in one go?
I am a on a long trail adding the missing .h and.cpp files one by one as they are asked for in the compile.

I am on a Mac - perhaps thre is a special way to add all the esp libraries ?
User avatar
By martinayotte
#20173
Sunspot wrote:It now wants ESP8266WiFi.h but i can only find ESP8266wifi.h and ESP8266wifi.cpp and they give compile errors.

In this case, they are in the main IGRR repo :

https://github.com/esp8266/Arduino/tree ... 66WiFi/src

Did you choose "Generic ESP8266 Module" in Board menu ? Because it should be already detected by IDE, unless there is an issue with Board Manager (I'm still using original ArduinoIDE 1.6.1)
User avatar
By Sunspot
#20174 I followed the instruction for the ESP8266Arduino install - but hardly any of the Buffet includes are present by default.

I Google for each one and add it - then add the next one it asks for

now it asks for <memory>


In file included from ESP8266WiFi.h:33:0,
from ESP8266WiFi.cpp:22:
WiFiClient.h:28:18: fatal error: memory: No such file or directory
#include <memory>
^
compilation terminated.
Error compiling.

Help much appreciated
I wonder if all the esp .h files etc are gathered somewhere? I can only find each file in various Github pages


All this is because I need i2c and especially a port expander as included in the Buffet - the search continues . . . . .