-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Area: ESP-IDF relatedESP-IDF related issuesESP-IDF related issuesArea: Peripherals APIRelates to peripheral's APIs.Relates to peripheral's APIs.Status: SolvedThe issue has been resolved and requires no further action.The issue has been resolved and requires no further action.
Milestone
Description
Board
esp32
Device Description
esp32
Hardware Configuration
not have
Version
v2.0.1
IDE Name
Arduino IDE
Operating System
windows10
Flash frequency
80
PSRAM enabled
no
Upload speed
921600
Description
I want to change the I2C clock, but I find that if the frequency exceeds 100K, the IIC frequency will not change to the size I set. For example, if I set 400K, it can only reach about 350K. Is there any way to optimize it?
Sketch
#include "Wire.h"
void setup() {
Serial.begin(115200);
Wire.begin(SDA,SCL,(uint32_t)409600);
}
void loop() {
byte error, address;
int nDevices = 0;
Serial.println("Scanning for I2C devices ...");
for(address = 0x01; address < 0x7f; address++){
Wire.beginTransmission(address);
error = Wire.endTransmission();
}
}
Debug Message
not have
Other Steps to Reproduce
not have
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Area: ESP-IDF relatedESP-IDF related issuesESP-IDF related issuesArea: Peripherals APIRelates to peripheral's APIs.Relates to peripheral's APIs.Status: SolvedThe issue has been resolved and requires no further action.The issue has been resolved and requires no further action.
Type
Projects
Status
Done