esp8266 / esp8266/Arduino

Generic esp8266 does not set i2c pins for ESP01

Open
#8,900 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
16.7k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

### Basic Infos

- [ ] This issue complies with the [issue POLICY doc](https://github.com/esp8266/Arduino/blob/master/POLICY.md).
- [X] I have read the documentation at [readthedocs](https://arduino-esp8266.readthedocs.io/en/latest) and the issue is not addressed there.
- [X] I have tested that the issue is present in current master branch (aka latest git).
- [X] I have searched the issue tracker for a similar issue.
- [ ] If there is a stack dump, I have decoded it.
- [x] I have filled out all fields below.

#### Platform

- Hardware: [ESP-01]
- Core Version: [3.0.2]
- Development Env: [Arduino IDE 2.0.4]
- Operating System: [Windows]

### Settings in IDE

- Module: [Generic ESP8266 Module]
- Flash Mode: [qio]
- Flash Size: [1MB]
- lwip Variant: [v2 Lower Memory]
- Reset Method: [nodemcu]
- Flash Frequency: [40Mhz]
- CPU Frequency: [80Mhz]
- Upload Using: [SERIAL]
- Upload Speed: [115200] (serial upload only)

### Problem Description

the library does not set i2c pins for ESP-01 correctly. It comes with default 4 SDA/5 SCK which ESP01 is missing. It should set them GP2 and GP0.

### [MCVE](https://stackoverflow.com/help/mcve) Sketch

```cpp

#include

void setup() {
.
.
// requires manual initialization
Wire.begin (2,0);
.
.
}

void loop() {

}

```

### Debug Messages

```
Debug messages go here
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.