I want to switch data reading from multiple sensors by line buffer IC (74F244).
My problem is I can't read anything from sensor when I connect via IC but can when connect sensor to ESP32 directly. I found that endTransmission()
in this code return 2 but return 0 when connect directly.
How can I use endTransmission via line buffer IC ?
void setBH1750Mode( byte i2c_addr, byte mode ) {
Wire.beginTransmission( i2c_addr );
Wire.write( mode );
Wire.endTransmission();
delay(200); // delay for 200 msec
}