| 22 | |
| 23 | #if defined (ESP8266) || defined(ESP32) |
| 24 | bool TCA9548::begin(uint8_t dataPin, uint8_t clockPin, uint8_t mask) |
| 25 | { |
| 26 | if ((dataPin < 255) && (clockPin < 255)) |
| 27 | { |
| 28 | _wire->begin(dataPin, clockPin); |
| 29 | } else { |
| 30 | _wire->begin(); |
| 31 | } |
| 32 | if (! isConnected()) return false; |
| 33 | setChannelMask(mask); |
| 34 | return true; |
| 35 | } |
| 36 | #endif |
| 37 | |
| 38 |