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

ESP32: Neopixel does not work anymore with experimental 1v99 #1484

Closed
NielsLeenheer opened this issue Aug 6, 2018 · 6 comments

Comments

Projects
None yet
4 participants
@NielsLeenheer
Copy link

commented Aug 6, 2018

When using the experimental 1v99 version of Espruino, using the following command from the documentation to change the color of a NeoPixel nothing happens:

require("neopixel").write(D13, [255,0,0]);

However, if I flash the current 1v95, it works without issues.

@gfwilliams gfwilliams added the ESP32 label Aug 6, 2018

@wilberforce

This comment has been minimized.

Copy link
Member

commented Aug 7, 2018

Could this be related to ?

#1459

fcccdcc

@gfwilliams

This comment has been minimized.

Copy link
Member

commented Aug 7, 2018

Nope - ESP32 uses its own function esp32_neopixelWrite - which as far as I know hasn't changed since it was created ages ago.

I guess it's the new ESP32 SDK?

@wilberforce

This comment has been minimized.

Copy link
Member

commented Aug 19, 2018

v1_97 is the last working version
https://github.com/espruino/Espruino/releases/tag/RELEASE_1V97
2018-04-24

@wilberforce

This comment has been minimized.

Copy link
Member

commented Aug 19, 2018

@jumjum123

This has stopped working from we changed to the V3.0 sdk.

Any ideas of what needs to be updated here:

https://github.com/espruino/Espruino/blob/master/targets/esp32/esp32_neopixel.c

?

@jumjum123

This comment has been minimized.

Copy link
Contributor

commented Aug 21, 2018

Hmm, I only know about a change around V3.1
SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_RMT_CLK_EN);
CLEAR_PERI_REG_MASK(DPORT_PERIP_RST_EN_REG, DPORT_RMT_RST);
needs to be replaced with
DPORT_SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_RMT_CLK_EN);
DPORT_CLEAR_PERI_REG_MASK(DPORT_PERIP_RST_EN_REG, DPORT_RMT_RST);
To be honest, I did not check. And for about a month I will not have much time.

@wilberforce

This comment has been minimized.

Copy link
Member

commented Dec 16, 2018

This has been fixed in
#1585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.