See below for more information on the command-line syntax. 3.2 Linux The GUI is included in the i2cdriver Python package, compatible with both Python 2 and 3. To install it, open a shell prompt and do: sudo pip install i2cdriver Then run it with i2cgui.py...
Page 8
CDriver User Guide For the command-line tool, clone the repository , then do: cd i2cdriver/c make -f linux/Makefile sudo make -f linux/Makefile install i2ccl /dev/cu.usbserial-DO00QS8D i (substituting your actual I CDriver’s ID for DO00QS8D) and you should see some- thing like: uptime 1651 4.971 V 5 mA 21.2 C SDA=1 SCL=1 speed=100 kHz...
The I CDriver bindings can be installed with pip like this: pip install i2cdriver then from Python you can read an LM75B temperature sensor with: >>> import i2cdriver >>> i2c = i2cdriver.I2CDriver("/dev/ttyUSB0") >>> d=i2cdriver.EDS.Temp(i2c) >>> d.read() 17.875 >>> d.read() 18.0 You can print a bus scan with: >>>...
• product – product code e.g. i2cdriver1 • serial – serial string of I2CDriver • uptime – time since I2CDriver boot, in seconds • voltage – USB voltage, in V • current – current used by attached device, in mA •...
Need help?
Do you have a question about the I2CDriver and is the answer not in the manual?
Questions and answers