|
|
|
@ -53,14 +53,14 @@ tickerPi is a Python Program to handle WS281X LED interactions on a Raspberry P
|
|
|
|
|
sudo apt-get install -y i2c-tools
|
|
|
|
|
sudo raspi-config
|
|
|
|
|
```
|
|
|
|
|
* Interfacing Options > I2C > Enable > Yes
|
|
|
|
|
> If you did not hit "finish" you can repeat these steps but change out the I2C for the SPI
|
|
|
|
|
* Interfacing Options > I2C > Enable > Yes
|
|
|
|
|
> If you did not hit "finish" you can repeat these steps but change out the I2C for the SPI
|
|
|
|
|
* Enabling SPI:
|
|
|
|
|
* From Command Line:
|
|
|
|
|
```
|
|
|
|
|
sudo raspi-config
|
|
|
|
|
```
|
|
|
|
|
* Interfacing Options > SPI > Enable > Yes
|
|
|
|
|
* Interfacing Options > SPI > Enable > Yes
|
|
|
|
|
* Click "Finish"
|
|
|
|
|
* Reboot your Raspberry Pi
|
|
|
|
|
```
|
|
|
|
@ -69,19 +69,19 @@ tickerPi is a Python Program to handle WS281X LED interactions on a Raspberry P
|
|
|
|
|
* Testing I2C and SPI after reboot:
|
|
|
|
|
* I2C Testing:
|
|
|
|
|
```
|
|
|
|
|
sudo i2cdetect -y 1
|
|
|
|
|
```
|
|
|
|
|
sudo i2cdetect -y 1
|
|
|
|
|
```
|
|
|
|
|
* If you do not get anything back from the above command, try seeing which I2C is being used under Dev:
|
|
|
|
|
```
|
|
|
|
|
ls /dev/i2c*
|
|
|
|
|
```
|
|
|
|
|
> Whichever number is after the "-" in "/dev/i2c-(X) is what you should replace the number in the command with
|
|
|
|
|
>> Example: /dev/i2c-3 = "sudo i2cdetect -y 3"
|
|
|
|
|
* SPI Testing:
|
|
|
|
|
```
|
|
|
|
|
ls -l /dev/spidev*
|
|
|
|
|
```
|
|
|
|
|
> This should return a device for each SPI bus (two)
|
|
|
|
|
```
|
|
|
|
|
ls /dev/i2c*
|
|
|
|
|
```
|
|
|
|
|
> Whichever number is after the "-" in "/dev/i2c-(X) is what you should replace the number in the command with
|
|
|
|
|
>> Example: /dev/i2c-3 = "sudo i2cdetect -y 3"
|
|
|
|
|
* SPI Testing:
|
|
|
|
|
```
|
|
|
|
|
ls -l /dev/spidev*
|
|
|
|
|
```
|
|
|
|
|
> This should return a device for each SPI bus (two)
|
|
|
|
|
3. Installing Python Support Libraries:
|
|
|
|
|
* GPIO - If not already installed:
|
|
|
|
|
```
|
|
|
|
|