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

How to use WS2812 for at32 mcu's. #64

Open
smollion1 opened this issue Aug 12, 2024 · 5 comments
Open

How to use WS2812 for at32 mcu's. #64

smollion1 opened this issue Aug 12, 2024 · 5 comments

Comments

@smollion1
Copy link

I tried adding ws2812 to the tekko32 target circuit, using version 1.99 firmware, but it didn't work

@lida2003
Copy link

lida2003 commented Aug 12, 2024

Did you try below macro for definition?

#define USE_LED_STRIP
#define WS2812_PIN GPIO_PINS_7

Be aware of change the pin number according to your sch.

@smollion1
Copy link
Author

ok
In the target of F051, USE_RGB_LED is defined. Which pin is used?

@lida2003
Copy link

It needs to be checked with tekko32, so you have to contact manufacture for more sch info I think.

Currently, I just saw two targets have this feature:

  • FLYROTOR_F421
  • HAKRC_G23_F421

@smollion1
Copy link
Author

The LED of F421 is already on, but the LED of F051 seems different. USE_RGB_LED,but not define pin.

  • #ifdef NEUTRONRC_F051
  • #define USE_RGB_LED

@lida2003
Copy link

Check schmatic and make sure the pin is on the board

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

2 participants