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

Fix change of LED pin setting #338

Merged
merged 1 commit into from Sep 15, 2018
Merged

Conversation

amelchio
Copy link
Contributor

A change to ledPin would only have an effect if inverse was also change (and vice versa).

...

I found this while trying to figure out why I was unable to completely turn off the LED. It turns out that my board has two LEDs and I was observing the wrong one. The one I was trying to silence would actually light up every time a packet was sent because it is controlled by GPIO16. Moving CE from GPIO16 to GPIO4 solved my issue.

https://lowvoltage.github.io/2017/07/09/Onboard-LEDs-NodeMCU-Got-Two

@sidoh
Copy link
Owner

sidoh commented Sep 15, 2018

Good catch. Thanks!

@sidoh sidoh merged commit d101bb8 into sidoh:master Sep 15, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants