mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Scan wire before starting touch driver
This commit is contained in:
parent
cb090b3cf3
commit
4103535aac
@ -58,6 +58,8 @@ static void scan(TwoWire& i2c)
|
||||
|
||||
void FT6336U_init()
|
||||
{
|
||||
scan(Wire1);
|
||||
|
||||
LOG_INFO(TAG_DRVR, F("Touch SDA : %d"), TOUCH_SDA);
|
||||
LOG_INFO(TAG_DRVR, F("Touch SCL : %d"), TOUCH_SCL);
|
||||
LOG_INFO(TAG_DRVR, F("Touch freq. : %d"), TOUCH_FREQUENCY);
|
||||
@ -78,8 +80,6 @@ void FT6336U_init()
|
||||
Wire1.write(0x00); // data
|
||||
Wire1.endTransmission();
|
||||
|
||||
scan(Wire1);
|
||||
|
||||
if(touchpanel->read_chip_id() != 0) {
|
||||
LOG_INFO(TAG_DRVR, F("FT6336U touch driver started chipid: %d"), touchpanel->read_chip_id());
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user