Changed I2C init order

This commit is contained in:
Ea-r-th
2025-09-16 03:07:52 -07:00
parent 7b32859c88
commit 75132eb040
2 changed files with 31 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ int main() {
uint8_t initByte[1] = {0x71};
uint8_t status = SHAL_I2C1.masterWriteReadByte(0x38,initByte,1);
uint8_t status = SHAL_I2C1.masterWriteReadByte(0xEE,initByte,1);
if ((status & 0x18) != 0x18) {
SHAL_UART2.sendString("DHT ready");