add m5stack cores3 support

This commit is contained in:
Forairaaaaa
2024-12-26 12:24:53 +08:00
parent 8ae4f03417
commit 9626b0b71b
11 changed files with 652 additions and 11 deletions

View File

@@ -29,3 +29,7 @@ uint8_t I2cDevice::ReadReg(uint8_t reg) {
ESP_ERROR_CHECK(i2c_master_transmit_receive(i2c_device_, &reg, 1, buffer, 1, 100));
return buffer[0];
}
void I2cDevice::ReadRegs(uint8_t reg, uint8_t* buffer, size_t length) {
ESP_ERROR_CHECK(i2c_master_transmit_receive(i2c_device_, &reg, 1, buffer, length, 100));
}