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
Closed

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

NielsLeenheer opened this issue Aug 6, 2018 · 6 comments
Labels
ESP32 This is only a problem on ESP32-based devices

Comments

@NielsLeenheer
Copy link

NielsLeenheer 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 This is only a problem on ESP32-based devices label Aug 6, 2018
@wilberforce
Copy link
Member

wilberforce commented Aug 7, 2018

Could this be related to ?

#1459

fcccdcc

@gfwilliams
Copy link
Member

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
Copy link
Member

wilberforce commented Aug 19, 2018

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

@wilberforce
Copy link
Member

@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
Copy link
Contributor

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
Copy link
Member

This has been fixed in
#1585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ESP32 This is only a problem on ESP32-based devices
Projects
None yet
Development

No branches or pull requests

4 participants