do bitbanging while scanning i2c bus
This commit is contained in:
parent
7c056bdea9
commit
33318fb7ad
@ -52,7 +52,7 @@ void i2c_scan(void) {
|
|||||||
if (I2C_MUTEX_LOCK()) {
|
if (I2C_MUTEX_LOCK()) {
|
||||||
|
|
||||||
memset(&bbi2c, 0, sizeof(bbi2c));
|
memset(&bbi2c, 0, sizeof(bbi2c));
|
||||||
bbi2c.bWire = 1; // use wire library, no bitbanging
|
bbi2c.bWire = 0;
|
||||||
bbi2c.iSDA = MY_DISPLAY_SDA;
|
bbi2c.iSDA = MY_DISPLAY_SDA;
|
||||||
bbi2c.iSCL = MY_DISPLAY_SCL;
|
bbi2c.iSCL = MY_DISPLAY_SCL;
|
||||||
I2CInit(&bbi2c, 100000L); // Scan at 100KHz low speed
|
I2CInit(&bbi2c, 100000L); // Scan at 100KHz low speed
|
||||||
|
Loading…
Reference in New Issue
Block a user