do bitbanging while scanning i2c bus

This commit is contained in:
cyberman54 2022-03-01 19:13:18 +01:00
parent 7c056bdea9
commit 33318fb7ad

View File

@ -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