Skip to content

Cannot Build with Wire.h on Arduino #4077

Closed
@eggsactly

Description

@eggsactly

Basic Infos

Hardware

Hardware: ?Arduino?
Core Version: ?2.4.0?

Description

I cannot build a sketch that includes both the Wire.h and EP8266WiFi.h libraries. I am trying to build for an Arduino Uno Wifi. Using Arduino 1.8.5 on Debian 9.3.

Settings in IDE

Module: ?Arduino?
Flash Size: ?4MB/(1MB SPIFFS)?
CPU Frequency: ?80Mhz?
Flash Mode: ?N/A?
Flash Frequency: ?115200?
Upload Using: ?SERIAL?
Reset Method: ?N/A?

Sketch

#include <ESP8266WiFi.h>
#include <Wire.h>

void setup() {
  // Do Nothing
}

Debug Messages

/home/$USER/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.cpp:48:30: error: 'SDA' was not declared in this scope
 static int default_sda_pin = SDA;
                              ^
/home/$USER/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.cpp:49:30: error: 'SCL' was not declared in this scope
 static int default_scl_pin = SCL;
                              ^
exit status 1
Error compiling for board Arduino.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions