adafruit / Adafruit_CircuitPython_BusDevice

Two helper classes that handle transaction related state for I2C and SPI including locks.
MIT License
105 stars 76 forks source link

Added debug to i2c_device. #24

Closed kattni closed 5 years ago

kattni commented 5 years ago

Tested on Feather M4 with VCNL4040.

code.py output:
i2c_device.write: ['0xc', '0x0', '0x0']
i2c_device.readinto: ['0xc', '0x86', '0x1']
i2c_device.write: ['0x3', '0x0', '0x0']
i2c_device.readinto: ['0x3', '0x1', '0x0']
i2c_device.write: ['0x3', '0x1', '0x0']
i2c_device.write: ['0x0', '0x0', '0x1']