From 33318fb7ad21fda66723b85e06127b827b210030 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Tue, 1 Mar 2022 19:13:18 +0100 Subject: [PATCH] do bitbanging while scanning i2c bus --- src/i2c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i2c.cpp b/src/i2c.cpp index 530dee4c..f12334a8 100644 --- a/src/i2c.cpp +++ b/src/i2c.cpp @@ -52,7 +52,7 @@ void i2c_scan(void) { if (I2C_MUTEX_LOCK()) { memset(&bbi2c, 0, sizeof(bbi2c)); - bbi2c.bWire = 1; // use wire library, no bitbanging + bbi2c.bWire = 0; bbi2c.iSDA = MY_DISPLAY_SDA; bbi2c.iSCL = MY_DISPLAY_SCL; I2CInit(&bbi2c, 100000L); // Scan at 100KHz low speed