Comments (9)
Is it bitbang or hardware SPI that you want to use? Also, I think you use the API the"old" way, and this no longer works.
For SPI bus 1 (2nd bus), you would use:
strip = apa102.APA102(num_led=5, spi_bus=1)
I can't test at the moment, but I think with the above initialisation it should work.
from apa102-pi.
from apa102-pi.
Can't say I understand it, but when I check the source code of the Adafruit library that lies underneath of apa102-pi, it appears that you need to use spi_bus number 6 for pins 38/40. Please give this a try.
It's most likely a typo in their library...
from apa102-pi.
from apa102-pi.
I fixed the typo in the Adafruit library, and now it's working on SPI bus 1. If I get to it I'll raise a pull request with them to get it fixed.
In the meantime, the file to edit is:
.venv/lib/python3.9/site-packages/adafruit_blinka/microcontroller/bcm2711/pin.py
That is if you installed as recommended into a virtual env. Otherwise you will have to find the file by yourself.
At the end of the file you will see the spiPorts definition. Simply change the 6 to a 1 and save.
from apa102-pi.
from apa102-pi.
from apa102-pi.
Good to hear. Adafruit accepted by pull request a long time ago. Possibly if you get their latest version of the library, the issue is gone without patching.
About the "hardwares pi": Please check the "debug" branch. The output will not be there.
from apa102-pi.
This should no longer be an issue, because the Adafruit libraries have been updated.
from apa102-pi.
Related Issues (20)
- Should I make a pull request for features I have added? HOT 2
- [Q] SK9822 support HOT 7
- Trying to modify the code as a northern lights show. HOT 7
- Constant lights HOT 7
- Raspberry pi 3 apa102 ambilight HOT 3
- control each led HOT 2
- Software SPI (Bit Bang) informations HOT 2
- [Suggestion] Please package this library on PyPi/pip HOT 4
- A level shifter is not needed HOT 1
- Running sample with a single LED HOT 4
- Rainbow corruption? HOT 19
- package installation location HOT 4
- global_brightness range HOT 3
- User hardware SPI HOT 8
- Use hardware SPI in Rasberry Pi 3 model B HOT 4
- python 3.8 vs. 3.5 HOT 1
- Not Fast enough HOT 5
- LED Colour HOT 5
- feature or bug print statements HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apa102-pi.