PTH's embedded Raspberrypi tools and tweaks: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= I2C = Enable I2C support by configuring the interface with <syntaxhighlight lang="bash" inline>raspi-config</syntaxhighlight>. Then, install the following packages: <synta...") |
No edit summary |
||
| Line 1: | Line 1: | ||
= I2C = | = I2C = | ||
Enable I2C support by configuring the interface with <syntaxhighlight lang="bash" inline>raspi-config</syntaxhighlight>. | Enable I2C support by configuring the interface with <syntaxhighlight lang="bash" inline>raspi-config</syntaxhighlight> and do a reboot to load the kernel drivers. | ||
Then, install the following packages: | Check if the kernel drivers were loaded at startup: | ||
<syntaxhighlight lang="bash"> | |||
lsmod | grep i2c | |||
</syntaxhighlight> | |||
For a Raspi 3B the result should look something like this: | |||
<syntaxhighlight lang="bash"> | |||
i2c_bcm2835 16384 0 | |||
i2c_dev 20480 0 | |||
</syntaxhighlight> | |||
Then, install the following packages to do some basic i2c tinkering: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo aptitude install i2c-tools | sudo aptitude install i2c-tools | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:23, 12 August 2021
I2C
Enable I2C support by configuring the interface with raspi-config and do a reboot to load the kernel drivers.
Check if the kernel drivers were loaded at startup:
lsmod | grep i2c
For a Raspi 3B the result should look something like this:
i2c_bcm2835 16384 0
i2c_dev 20480 0
Then, install the following packages to do some basic i2c tinkering:
sudo aptitude install i2c-tools