Skip to content

Commit e1dedd5

Browse files
committed
fix gt911 touch for esp32-3248S035C
this fixes the touch sensor for cyd esp32-3248S035C. error msg: beginTransmission(): "Bus is in Slave Mode" possibly related: espressif/arduino-esp32#6616
1 parent b3f175e commit e1dedd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TAMC_GT911.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TAMC_GT911::TAMC_GT911(uint8_t _sda, uint8_t _scl, uint8_t _int, uint8_t _rst, u
99

1010
void TAMC_GT911::begin(uint8_t _addr) {
1111
addr = _addr;
12-
Wire.begin(pinSda, pinScl);
12+
Wire.begin((int)pinSda, (int)pinScl);
1313
reset();
1414
}
1515
void TAMC_GT911::reset() {

0 commit comments

Comments
 (0)