Raspberry Pi 4B, RASPIO 64 bit Bullseye Lite, Swift Version 5.5
For example, to read the Status Register of an SHT31 (datasheet page 13)

would require...
i2c.writeByte(0x44, command: 0xF3, value: 0x2D)
let data = i2c.readData(0x44) // would return 6 bytes, but this is not possible.
It would also be helpful to be able to send word commands like this...
i2c.writeWord(0x44, command: 0xF32D)
Any help with this would be most helpful, because I'm completely stuck.
Raspberry Pi 4B, RASPIO 64 bit Bullseye Lite, Swift Version 5.5
For example, to read the Status Register of an SHT31 (datasheet page 13)
would require...
It would also be helpful to be able to send word commands like this...
Any help with this would be most helpful, because I'm completely stuck.