Instrument control package: Difference between revisions
Jump to navigation
Jump to search
→i2c
(→i2c) |
(→i2c) |
||
Line 364: | Line 364: | ||
To work out the devices available (assuming i2ctools are installed) run the i2cdetect command from a terminal window. | To work out the devices available (assuming i2ctools are installed) run the i2cdetect command from a terminal window. | ||
<syntaxhighlight lang="bash" style="font-size:13px"> | |||
$ i2cdetect -l | $ i2cdetect -l | ||
i2c-1 i2c i2c-ch341-usb at bus 002 device 008 I2C adapter | i2c-1 i2c i2c-ch341-usb at bus 002 device 008 I2C adapter | ||
i2c-0 unknown SMBus I801 adapter at 4000 N/ | i2c-0 unknown SMBus I801 adapter at 4000 N/ | ||
</syntaxhighlight> | |||
In the example case the temperature sensor is connected to the i2c-ch341-usb device, as as sufficient permissions to access the device as a user. | In the example case the temperature sensor is connected to the i2c-ch341-usb device, as as sufficient permissions to access the device as a user. |