Skip to content

I2c frequency #6444

@fary99

Description

@fary99

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

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions