mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-29 16:37:17 +02:00
Update example to use sht support for sht3x and sht4x
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user