Formatting changes on README.md v9
This commit is contained in:
35
README.md
35
README.md
@@ -30,28 +30,29 @@ tickerPi is a Python Program to handle WS281X LED interactions on a Raspberry P
|
|||||||
sudo pip3 install --upgrade setuptools
|
sudo pip3 install --upgrade setuptools
|
||||||
```
|
```
|
||||||
* If this fails, try this and repeat step 1
|
* If this fails, try this and repeat step 1
|
||||||
```
|
```
|
||||||
sudo apt-get install python3-pip
|
sudo apt-get install python3-pip
|
||||||
```
|
```
|
||||||
* Recommended, but may not be required, setting your Python install to default with Python 3. There are multiple ways to do this, here's an example:
|
* Recommended, but may not be required, setting your Python install to default with Python 3.\
|
||||||
```
|
There are multiple ways to do this, here's an example:
|
||||||
sudo apt-get install -y python3 git python3-pip
|
```
|
||||||
sudo update-alternatives --install /usr/bin/python python $(which python2) 1
|
sudo apt-get install -y python3 git python3-pip
|
||||||
sudo update-alternatives --install /usr/bin/python python $(which python3) 2
|
sudo update-alternatives --install /usr/bin/python python $(which python2) 1
|
||||||
sudo update-alternatives --config python
|
sudo update-alternatives --install /usr/bin/python python $(which python3) 2
|
||||||
```
|
sudo update-alternatives --config python
|
||||||
|
```
|
||||||
2. Enabling I2C and SPI, which is only required to be done **once** for **each** Raspberry Pi:\
|
2. Enabling I2C and SPI, which is only required to be done **once** for **each** Raspberry Pi:\
|
||||||
**Only Required if you are using multiple devices on your Raspberry Pi, if not, move to step 3**\
|
**Only Required if you are using multiple devices on your Raspberry Pi, if not, move to step 3**\
|
||||||
**Important:**\
|
**Important:**
|
||||||
> If you are using a GPIO wiring setup for the LEDs that does not support I2C, you will not see anything show up for the LEDS.\
|
> If you are using a GPIO wiring setup for the LEDs that does not support I2C, you will not see anything show up for the LEDS.\
|
||||||
> Again, this is only for if you have **OTHER** devices you plan on hooking up to make sure they still show up under I2C\
|
> Again, this is only for if you have **OTHER** devices you plan on hooking up to make sure they still show up under I2C
|
||||||
* Enabling I2C:
|
* Enabling I2C:
|
||||||
* From Command Line:
|
* From Command Line:
|
||||||
```
|
```
|
||||||
sudo apt-get install -y python-smbus
|
sudo apt-get install -y python-smbus
|
||||||
sudo apt-get install -y i2c-tools
|
sudo apt-get install -y i2c-tools
|
||||||
sudo raspi-config
|
sudo raspi-config
|
||||||
```
|
```
|
||||||
* Interfacing Options > I2C > Enable > Yes
|
* Interfacing Options > I2C > Enable > Yes
|
||||||
> If you did not hit "finish" you can repeat these steps but change out the I2C for the SPI
|
> If you did not hit "finish" you can repeat these steps but change out the I2C for the SPI
|
||||||
* Enabling SPI:
|
* Enabling SPI:
|
||||||
|
|||||||
Reference in New Issue
Block a user