Update example to use sht support for sht3x and sht4x

This commit is contained in:
Phat Nguyen
2024-02-16 13:39:33 +07:00
parent fc5c0a1d6e
commit a0044ad0ac
7 changed files with 58 additions and 594 deletions

View File

@ -12,9 +12,10 @@ void setup() {
Serial.begin(115200);
Serial.println("Hello");
Wire.begin(ag.getI2cSdaPin(), ag.getI2cSclPin());
delay(1000);
if (ag.sht.begin(Wire) == false) {
failedHandler("SHT3x init failed");
failedHandler("SHT init failed");
}
}