Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32F030K6T6 What I'm doing wrong? #12

Open
maghostmil opened this issue Oct 13, 2023 · 0 comments
Open

STM32F030K6T6 What I'm doing wrong? #12

maghostmil opened this issue Oct 13, 2023 · 0 comments

Comments

@maghostmil
Copy link

Hi!

I'm trying to run this library on STM32F030K6T6, but I have a trouble with it.
All configs are correctly set, but the frequency is 4 times slower than that supposed to.

Screens:
obraz
obraz
obraz
obraz

Of course I added the TIM_NUM 17 to ARGB.c and hard-coded frequency, which should not effect on performance:
void ARGB_Init(void) { u32_t APBfq = 48000000; // Clock freq #ifdef WS2811S

ARGB.h:
`#define WS2812 ///< Family: {WS2811S, WS2811F, WS2812, SK6812}
// WS2811S — RGB, 400kHz;
// WS2811F — RGB, 800kHz;
// WS2812 — GRB, 800kHz;
// SK6812 — RGBW, 800kHz

#define NUM_PIXELS 100 ///< Pixel quantity

#define USE_GAMMA_CORRECTION 1 ///< Gamma-correction should fix red&green, try for yourself

#define TIM_NUM 17 ///< Timer number
#define TIM_CH TIM_CHANNEL_1 ///< Timer's PWM channel
#define DMA_HANDLE hdma_tim17_ch1_up ///< DMA Channel
#define DMA_SIZE_WORD ///< DMA Memory Data Width: {.._BYTE, .._HWORD, .._WORD}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant