Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

I2c frequency #6444

Copy link
Copy link
Closed
Closed
Copy link
@fary99

Description

@fary99
Issue body actions

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

Type

No type

Projects

Status

Done
Show more project fields

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.