Crazy-Geeks / STM32-ARGB-DMA

STM32 Library for Addressable LEDs: WS2812(b), WS2811, SK6812, etc. Supports RGB & RGBW LEDs.
MIT License
84 stars 25 forks source link

Work frequency #1

Open Crazy-Geeks opened 3 years ago

Crazy-Geeks commented 3 years ago

Now strip works only when APB frequency is 72 MHz. I tried to set it to 8 MHz and change counter to 9 (8x10^6/8x10^5 = 10), but strip didn't work at all. In several weeks I'll buy logic analizator to watch what happens at GPIO pin.

arilink-tech commented 3 years ago

My clock is set to 72MHz and I use CubeMX to configure the timer and DMA. The library of ws2812 is included, but it does not work properly. Could you please ask?

Crazy-Geeks commented 3 years ago

@arilink I’ll commit a new version in several days. It works fine, but only on 72 MHz too. Just wait a little, I fixed memory consumption and added HSV color model

Also check your power supply. As you can see in ws2812(b) datasheet, logic voltage should be in some range. If your led supply is >4.8V, leds won’t see signal from STM I’ll notice this moment in readme

arilink-tech commented 3 years ago

I haven’t paid attention to memory consumption. I tried cubemx for an afternoon, but I couldn’t control ws2812 successfully.

Crazy-Geeks commented 3 years ago

@arilink Check the new commit, please.

arilink-tech commented 3 years ago

ok i will try