Skip to content

ESP32S3 - I2C issues #2607

Open
Open
@MaBecker

Description

@MaBecker

Sample code to read version from a CST816S i2c module from a ESP32-S3-Touch-LCD-1.28 device

// CST816S
const ID = 0x15, REG_VERSION = 0x15, REG_VERSION_INFO = 0xA7;

I2C1.setup({sda:D6,scl:D7});

print('Version:', I2C1.readReg(ID, REG_VERSION, 1));
print('Version Info:', I2C1.readReg(ID, REG_VERSION_INFO, 3));
/*
Uncaught Error: jshI2CWrite: slave doesn't ACK the transfer
 at line 39 col 50
print('Version:', I2C1.readReg(ID, REG_VERSION, 1));
                                                 ^
Uncaught Error: jshI2CWrite: slave doesn't ACK the transfer
 at line 40 col 60
...Reg(ID, REG_VERSION_INFO, 3));
                              ^
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    ESP32This is only a problem on ESP32-based devices

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions