|
|
@ -60,23 +60,23 @@ tickerPi is a Python Program to handle WS281X LED interactions on a Raspberry P
|
|
|
|
```
|
|
|
|
```
|
|
|
|
sudo raspi-config
|
|
|
|
sudo raspi-config
|
|
|
|
```
|
|
|
|
```
|
|
|
|
* Interfacing Options > SPI > Enable > Yes
|
|
|
|
* Interfacing Options > SPI > Enable > Yes
|
|
|
|
* Click "Finish"
|
|
|
|
* Click "Finish"
|
|
|
|
* Reboot your Raspberry Pi
|
|
|
|
* Reboot your Raspberry Pi
|
|
|
|
```
|
|
|
|
```
|
|
|
|
sudo reboot
|
|
|
|
sudo reboot
|
|
|
|
```
|
|
|
|
```
|
|
|
|
* Testing I2C and SPI after reboot:
|
|
|
|
* Testing I2C and SPI after reboot:
|
|
|
|
* I2C Testing:
|
|
|
|
* 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:
|
|
|
|
* If you do not get anything back from the above command, try seeing which I2C is being used under Dev:
|
|
|
|
```
|
|
|
|
```
|
|
|
|
ls /dev/i2c*
|
|
|
|
ls /dev/i2c*
|
|
|
|
```
|
|
|
|
```
|
|
|
|
> Whichever number is after the "-" in "/dev/i2c-(X) is what you should replace the number in the command with
|
|
|
|
> 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"
|
|
|
|
>> Example: /dev/i2c-3 = "sudo i2cdetect -y 3"
|
|
|
|
* SPI Testing:
|
|
|
|
* SPI Testing:
|
|
|
|
```
|
|
|
|
```
|
|
|
|
ls -l /dev/spidev*
|
|
|
|
ls -l /dev/spidev*
|
|
|
|