circuitpython/ports
Damien George 19f1b39d6f stm32/i2c: When scanning for I2C devices only do 1 probe per address.
Previous to this patch the i2c.scan() method would do up to 100 probes per
I2C address, to detect the devices on the bus.  This repeated probing was a
relic from when the code was copied from the accelerometer initialisation,
which requires to do repeated probes while waiting for the accelerometer
chip to turn on.

But I2C devices shouldn't need more than 1 probe to detect their presence,
and the generic software I2C implementation uses 1 probe successfully.  So
this patch changes the implementation to use 1 probe per address, which
significantly speeds up the scan operation.
2017-09-08 11:19:40 +10:00
..
bare-arm all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
cc3200 all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
esp8266 all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
minimal all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
pic16bit all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
qemu-arm all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
stm32 stm32/i2c: When scanning for I2C devices only do 1 probe per address. 2017-09-08 11:19:40 +10:00
teensy all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
unix all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
windows all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
zephyr all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00