Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire.h #3

Open
Pusmos opened this issue Jul 7, 2020 · 3 comments
Open

Wire.h #3

Pusmos opened this issue Jul 7, 2020 · 3 comments

Comments

@Pusmos
Copy link

Pusmos commented Jul 7, 2020

Hi, I am having problems with uploading the codel. I am very new to using PlatformIO or anything for that matter and I am hoping someone would be so kind and help me fix this Issue. I downloaded the Github Page, Installed VS Code and PlatformIO, plugged in the D1 Mini and opened the .ini file and then clicked Upload. This is what I keep getting: (Sorry for the long text)

Executing task: C:\Users\Raphael.Catchpole.platformio\penv\Scripts\platformio.exe run --target upload <

Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino)
Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 2.5.3 > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 160MHz, 80KB RAM, 4MB Flash
PACKAGES:

framework-arduinoespressif8266 3.20701.0 (2.7.1)
tool-esptool 1.413.0 (4.13)
tool-esptoolpy 1.20800.0 (2.8.0)
tool-mkspiffs 1.200.0 (2.0)
toolchain-xtensa 2.40802.200502 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 36 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 1.9.0
| |-- 1.3.3
| | |-- 1.0
| |-- 1.0
|-- 1.5.5
| |-- 1.9.0
| | |-- 1.3.3
| | | |-- 1.0
| | |-- 1.0
| |-- 1.1.2
| | |-- 1.0
| |-- 1.1.0
| |-- 1.0
|-- <XPT2046_Touchscreen> 0.0.0-alpha+sha.26b691b2c8
| |-- 1.0
|-- 0.15.0
| |-- 1.1.1
| | |-- 1.0
| |-- 1.0
| | |-- 1.0
| |-- 1.0
|-- 1.0
|-- 1.1.1
| |-- 1.0
|-- 1.0
|-- 1.0
| |-- 1.0
|-- 1.0
|-- <Ethernet(esp8266)> 1.0.4
| |-- 1.0
Building in release mode
Compiling .pio\build\nodemcuv2\libe52\Adafruit BusIO_ID6214\Adafruit_BusIO_Register.cpp.o
Compiling .pio\build\nodemcuv2\libe52\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp.o
Compiling .pio\build\nodemcuv2\libb21\Adafruit GFX Library_ID13\Adafruit_MonoOLED.cpp.o
Compiling .pio\build\nodemcuv2\lib217\Adafruit STMPE610_ID377\Adafruit_STMPE610.cpp.o
In file included from .pio\libdeps\nodemcuv2\Adafruit BusIO_ID6214/Adafruit_BusIO_Register.h:1:0,
from .pio\libdeps\nodemcuv2\Adafruit BusIO_ID6214\Adafruit_BusIO_Register.cpp:1:
.pio\libdeps\nodemcuv2\Adafruit BusIO_ID6214/Adafruit_I2CDevice.h:1:18: fatal error: Wire.h: No such file
or directory
Looking for Wire.h dependency? Check our library registry!
CLI > platformio lib search "header:Wire.h"
Web > https://platformio.org/lib/search?query=header:Wire.h
#include <Wire.h>
^
compilation terminated.
*** [.pio\build\nodemcuv2\libe52\Adafruit BusIO_ID6214\Adafruit_BusIO_Register.cpp.o] Error 1
In file included from .pio\libdeps\nodemcuv2\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp:1:0:
.pio\libdeps\nodemcuv2\Adafruit BusIO_ID6214/Adafruit_I2CDevice.h:1:18: fatal error: Wire.h: No such file
or directory

Looking for Wire.h dependency? Check our library registry!
CLI > platformio lib search "header:Wire.h"
Web > https://platformio.org/lib/search?query=header:Wire.h
#include <Wire.h>
^
compilation terminated.
*** [.pio\build\nodemcuv2\libe52\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp.o] Error 1
In file included from .pio\libdeps\nodemcuv2\Adafruit GFX Library_ID13\Adafruit_MonoOLED.h:30:0,
from .pio\libdeps\nodemcuv2\Adafruit GFX Library_ID13\Adafruit_MonoOLED.cpp:20:
.pio\libdeps\nodemcuv2\Adafruit BusIO_ID6214/Adafruit_I2CDevice.h:1:18: fatal error: Wire.h: No such file
or directory

Looking for Wire.h dependency? Check our library registry!
CLI > platformio lib search "header:Wire.h"
Web > https://platformio.org/lib/search?query=header:Wire.h
#include <Wire.h>
^
compilation terminated.
*** [.pio\build\nodemcuv2\libb21\Adafruit GFX Library_ID13\Adafruit_MonoOLED.cpp.o] Error 1
.pio\libdeps\nodemcuv2\Adafruit STMPE610_ID377\Adafruit_STMPE610.cpp:32:18: fatal error: Wire.h: No such file or directory

Looking for Wire.h dependency? Check our library registry!
CLI > platformio lib search "header:Wire.h"
Web > https://platformio.org/lib/search?query=header:Wire.h
#include <Wire.h>
^
compilation terminated.
*** [.pio\build\nodemcuv2\lib217\Adafruit STMPE610_ID377\Adafruit_STMPE610.cpp.o] Error 1
======================================= [FAILED] Took 5.33 seconds =======================================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

@wwhai
Copy link

wwhai commented Dec 19, 2021

I have resolved:

  1. platform.ini
[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
monitor_speed = 38400
upload_speed = 921600
board_build.f_cpu = 160000000L

lib_deps =
  adafruit/Adafruit NeoPixel @ ^1.10.1
  adafruit/Adafruit BusIO @ ^1.9.8
  Adafruit GFX Library
  Adafruit ILI9341
  XPT2046_Touchscreen
  WifiManager
  1. main.cpp
// add an include file to file header:
#include <Wire.h>

@AB46AT
Copy link

AB46AT commented Mar 17, 2024

Hi.
I have been trying to compile the main.ccp file for several weeks but cannot succeed. There are several errors. I'm not very knowledgeable in programming. PLease can you help me: I need .ino Arduino Sketch or the .bin compiled file to upload it directly to the esp8266wifi chip. Thank you very much in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants