Fixed layout issues in GitLab

This commit is contained in:
2019-03-10 13:12:51 +01:00
parent 3128d9ae02
commit 302f2b0ade

View File

@@ -253,23 +253,31 @@ provide a patch). For information on how to connect sensor to the RaspberryPi
and to get it working please click on the links in the list above. As per these, and to get it working please click on the links in the list above. As per these,
most sensors require some configuration to make them available: most sensors require some configuration to make them available:
* No setup is required to read the CPU temperature. * No setup is required to read the CPU temperature.
* To enable 1-wire interface support on the RaspberryPi use the command: * To enable 1-wire interface support on the RaspberryPi use the command:
~~~ ~~~
sudo raspi-config nonint do_onewire 0 sudo raspi-config nonint do_onewire 0
~~~ ~~~
or use `raspi-config` interactively (1. Interfacing Options --> P7. 1-Wire). or use `raspi-config` interactively (1. Interfacing Options --> P7. 1-Wire).
Please note that changing this requires a reboot. Please note that changing this requires a reboot.
* To enable I2C interface support on the RaspberryPi use the command: * To enable I2C interface support on the RaspberryPi use the command:
~~~ ~~~
sudo raspi-config nonint do_i2c 0 sudo raspi-config nonint do_i2c 0
~~~ ~~~
or use `raspi-config` interactively (1. Interfacing Options --> P5. I2C). or use `raspi-config` interactively (1. Interfacing Options --> P5. I2C).
Please note that changing this requires a reboot. Please note that changing this requires a reboot.
The I2C interface also requires the `SMBus` or `SMBus2` library, to install The I2C interface also requires the `SMBus` or `SMBus2` library, to install
the `SMBus` library on Raspbian Linux run: the `SMBus` library on Raspbian Linux run:
~~~ ~~~
sudo apt install python-smbus sudo apt install python-smbus
~~~ ~~~
`SMBus2` is a pure Python implementation that requires system-wide or a `SMBus2` is a pure Python implementation that requires system-wide or a
`virtualenv`-based installation, less trivial than installing the package. `virtualenv`-based installation, less trivial than installing the package.