| 54 | |
| 55 | #if defined(ESP8266) || defined(ESP32) |
| 56 | bool SHT2x::begin(const int dataPin, const int clockPin) |
| 57 | { |
| 58 | _wire = &Wire; |
| 59 | if ((dataPin < 255) && (clockPin < 255)) |
| 60 | { |
| 61 | _wire->begin(dataPin, clockPin); |
| 62 | } else { |
| 63 | _wire->begin(); |
| 64 | } |
| 65 | return reset(); |
| 66 | } |
| 67 | #endif |
| 68 | |
| 69 |