Skip to content

Commit 3bb4e79

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 60601da commit 3bb4e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yoRadio/src/GT911_Touchscreen/TAMC_GT911.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ TAMC_GT911::TAMC_GT911(uint8_t _sda, uint8_t _scl, uint8_t _int, uint8_t _rst, u
1010

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

0 commit comments

Comments
 (0)