execuc / u2if

USB to interfaces implementing MicroPython "machine" module functionalities on a computer.
Other
152 stars 26 forks source link

i2c.scan() implemented as multi-byte writes #10

Open charkster opened 2 years ago

charkster commented 2 years ago

I was not able to detect the VCNL4010 ambient light sensor, as it will not ACK to a write to an invalid internal address (0x00 is not valid). This has the effect of the sensor not being detected from the i2c.scan() function. A further look at the i2c.scan() function sees it implement as multi-byte writes, which is not the spec recommended I2C quick commands.

rpi_pico_i2c_scan_failure_vcnl4010

charkster commented 2 years ago

Pull request #11 created which successfully detected all my i2c sensors.