Skip to content

wire1 not defined compilation error with ESP32C3 #419

@pf26

Description

@pf26

Using ESP32C3 dev module, the compiler fails in SSD1306Wire.h (library Version 4.6.1)
line84 this->_wire = (i2cBus == I2C_ONE) ? &Wire : &Wire1; ---> undefined Wire1

Workaround:
#undef ARDUINO_ARCH_ESP32
#define ARDUINO_ARCH_ESP8266 1
#include "SSD1306.h"
#define ARDUINO_ARCH_ESP32 1
#undef ARDUINO_ARCH_ESP8266

Defining ARDUINO_ARCH_ESP8266 is necessary to use alternate I2C pins.
ESP32 Board library V 2.0.18
ESP32 library V 3.2.0

I am quite new to all that, so it might be an issue on my side..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions