Added LPS22HB (RAK-1902) sensor support (#1802)

This commit is contained in:
Ben Meadors
2022-10-15 14:55:57 -05:00
committed by GitHub
parent 1e1509fbf5
commit 6b614a2d6a
6 changed files with 70 additions and 3 deletions

View File

@@ -203,6 +203,10 @@ void scanI2Cdevice(void)
DEBUG_MSG("SHTC3 sensor found at address 0x%x\n", (uint8_t)addr);
nodeTelemetrySensorsMap[TelemetrySensorType_SHTC3] = addr;
}
if (addr == LPS22HB_ADDR || addr == LPS22HB_ADDR_ALT) {
DEBUG_MSG("LPS22HB sensor found at address 0x%x\n", (uint8_t)addr);
nodeTelemetrySensorsMap[TelemetrySensorType_LPS22] = addr;
}
} else if (err == 4) {
DEBUG_MSG("Unknow error at address 0x%x\n", addr);
}