Merge pull request #6409 from gemu2015/touch-fix

fixes touch controller on core > 2.42
This commit is contained in:
Theo Arends 2019-09-12 11:00:54 +02:00 committed by GitHub
commit d9877e8086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ uint16_t FT6236GetButtonMask(void) {
void FT6236begin(uint8_t i2c_addr) { void FT6236begin(uint8_t i2c_addr) {
FT6236_i2c_addr=i2c_addr; FT6236_i2c_addr=i2c_addr;
Wire.begin(FT6236_i2c_addr); Wire.begin();
FT6236writeTouchRegister(0,FT6236_MODE_NORMAL); FT6236writeTouchRegister(0,FT6236_MODE_NORMAL);
lenLibVersion = FT6236readTouchAddr(0x0a1, FT6236buf, 2 ); lenLibVersion = FT6236readTouchAddr(0x0a1, FT6236buf, 2 );
firmwareId = FT6236readTouchRegister( 0xa6 ); firmwareId = FT6236readTouchRegister( 0xa6 );