-
-
Notifications
You must be signed in to change notification settings - Fork 760
Open
Labels
ESP32This is only a problem on ESP32-based devicesThis is only a problem on ESP32-based devices
Description
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
Labels
ESP32This is only a problem on ESP32-based devicesThis is only a problem on ESP32-based devices