GithubHelp home page GithubHelp logo

APA102 Support about espixelstick HOT 18 CLOSED

marcobrianza avatar marcobrianza commented on September 25, 2024
APA102 Support

from espixelstick.

Comments (18)

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

APA102 is a compile time option. There was not a lot of call for it and I needed space for other protocols. You can recompile a version with it turned on.

from espixelstick.

marcobrianza avatar marcobrianza commented on September 25, 2024

thank you for the clarification I'll try to rebuild the software, which I never attempted due to the extensive board support already present. Since there is a space problem I guess I need to disable other protocols. I'll go happily without Renard and GECE which to me are more exotic than a classic APA102.

from espixelstick.

marcobrianza avatar marcobrianza commented on September 25, 2024

Hi @MartinMueller2003 I rebuilt the latest code but I'm not sure where to find the option to enable APA102
is it here?:

from espixelstick.

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

The magic happens in the GPIO Def files. There is one for each platform. Go to your platform and uncomment the APA102 line and comment out something else. For APA you will also need to set the SPI GPIO values to what you are using.

from espixelstick.

marcobrianza avatar marcobrianza commented on September 25, 2024

I think that magic was already there for the D32PRO am I wrong?

from espixelstick.

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

Just loaded up my pro with latest code. You will find APA102 and WS2801 on Output port 7

from espixelstick.

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

That device has PSRAM and that allowed me to have all protocols enabled.

from espixelstick.

marcobrianza avatar marcobrianza commented on September 25, 2024

ok, very good I see it. before I did not explore all the ports to look for specific protocols

from espixelstick.

marcobrianza avatar marcobrianza commented on September 25, 2024

thank you for going through loading the code on the board to help me!

from espixelstick.

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

My pleasure

from espixelstick.

marcobrianza avatar marcobrianza commented on September 25, 2024

I'm Back :-)

setting output 7 to APA102 (that by default uses GPIO 16 and 17) in D32PRO

#define DEFAULT_SPI_DATA_GPIO gpio_num_t::GPIO_NUM_16

makes the board boot loop continuously

those GPIO are not availabe on D32 PRO for a reason and I think that is this:
micropython/micropython#7819

I changed to these free ones

#define DEFAULT_SPI_DATA_GPIO gpio_num_t::GPIO_NUM_15
#define DEFAULT_SPI_CLOCK_GPIO gpio_num_t::GPIO_NUM_0

some thing happens to the LED but it does not look right to me. maybe I need to use other pins, what are the pins you recommend?

from espixelstick.

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

Make sure the pins you use are not used by any other output ports. Tyr GPIO 14 & 12

from espixelstick.

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

FYI: I do not have any APA102 pixels. Someone else tested them a long time ago. I would not be surprised if there is a timing issue.

from espixelstick.

marcobrianza avatar marcobrianza commented on September 25, 2024

I have been investigating the APA102 support further but cannot make it work. I have tried GPIO 14 and 12 without success.
To be sure it was not a hardware issue I tested WLED and the good old FastLED with success on the mentioned pins. They work flawlessly.
I had a look at the code but sort of got lost in it. When I stated using APA102 10 years ago I had this reference
https://cpldcpu.wordpress.com/2014/11/30/understanding-the-apa102-superled/
In that era I was using AVR with hardware SPI writing frames in a very simple way with no timing issues due to the clocked nature of the protocol. (I can share that code if needed)
For me trying to port things in project is out of my knowledge but I can support it testing and contribute donating a APA102 strip to the project.
Please tell me if I can contribute in the above ways.
I relay like the scope of this software focusing on interfacing LAN protocols to LED protocols, the ability to play sequences and the clean and logic UI.

from espixelstick.

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

I dont need a lot of pixels for testing. 10 or 20 pixels would be enough. Please contact me at [email protected] and I will give you my address.

from espixelstick.

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

Fixes have been uploaded to the latest PR.

from espixelstick.

marcobrianza avatar marcobrianza commented on September 25, 2024

I confirm the fixes are working

from espixelstick.

MartinMueller2003 avatar MartinMueller2003 commented on September 25, 2024

And my APA102 string just arrived in my mailbox today. Sigh.

from espixelstick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.