Skip to main content
Lixx
Associate II
May 10, 2023 10:58 AM UTC
Question

control SK9822 2020 LED's via SPI using Registers

Hi

I need to control some SK9822 2020 RGB LED's.

I figured out that with the information on this website I can control them over SPI in transmitt only mode.

The Problem I have now is, that I need to do it using Registers and can't use CubeMX for setting up SPI.

I have seen several tutorials like this one explaining how to set up SPI using Registers, but wanted to ask here for a specific solution for these SK9822 LED's.

I hope someone knows the SK9822 LED's / have done somthing similar or at least can explain how I'd set up SPI in Transmitt only mode.

HW used

STM32F777

  • SPI1 @30MHz

SK9822 2020 LED's

Thanks for the answers in advance!

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
May 10, 2023 12:29 PM UTC

This


_legacyfs_online_stmicro_images_0693W00000bjmhfQAA.png 

and the maximum frequency (baudrate) are the only specifics to be set up in the STM32 SPI.

JW

Lixx
LixxAuthor
Associate II
May 11, 2023 5:13 AM UTC

Hi

Thanks for the answer!

What's with the other parameters of SPI?

How do I send the correct data?