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

WS2812.c code #16

Open
Quanghoster opened this issue Feb 21, 2018 · 3 comments
Open

WS2812.c code #16

Quanghoster opened this issue Feb 21, 2018 · 3 comments

Comments

@Quanghoster
Copy link

An esp-idf update has broken this code so that the output no longer works

The following needs to change:

add
#include <driver/rmt.h>

and change
PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[gpioNum], 2);
gpio_matrix_out(gpioNum, RMT_SIG_OUT0_IDX + RMTCHANNEL, 0, 0);
gpio_set_direction(gpioNum, GPIO_MODE_OUTPUT);**

to

rmt_set_pin((rmt_channel_t)RMTCHANNEL, RMT_MODE_TX, (gpio_num_t)gpioNum);

@vibnwis
Copy link

vibnwis commented Feb 21, 2018

which esp-idf version are you referring to?

@vibnwis
Copy link

vibnwis commented Mar 3, 2018

I interpreted Quanghoster's messages as the output would fail, not compilation issue because I did not experience compilation issues.

@carhero
Copy link

carhero commented Mar 3, 2018

Oh sorry.

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

3 participants