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

Fixes for ws2812 and ws2812_effects #2953

Merged
merged 3 commits into from
Dec 9, 2019
Merged

Conversation

HHHartmann
Copy link
Member

@HHHartmann HHHartmann commented Nov 2, 2019

Fixes #2946 #2921 and more.

  • This PR is for the dev branch rather than for master.
  • This PR is compliant with the other contributing guidelines as well (if not, please describe why).
  • I have thoroughly tested my contribution.
  • The code changes are reflected in the documentation at docs/*.

Cleanup code and fix issues in ws2812 and ws2812_effects
Besides the afore mentioned ones I fixed a false bounds check in ws2812_effects.set_brightness and ws2812_effects.set_speed

Also add some automated tests to show the differences between current and this implementation.
You will need to precompile at least the mispec.lua file to not run out of memory.
If you don't like them I will remove them from the PR.

@HHHartmann HHHartmann added this to the Next release milestone Nov 2, 2019
@marcelstoer
Copy link
Member

@TerryE would it be a problem for you if we merged this ahead of your large #2912?

@marcelstoer marcelstoer merged commit b179f30 into nodemcu:dev Dec 9, 2019
vsky279 pushed a commit to vsky279/nodemcu-firmware that referenced this pull request Dec 27, 2019
* clean effects library
* Fix several issues in ws2812 and effects
* Implement working way of calling shift from callback
@HHHartmann HHHartmann deleted the LED-strip branch May 1, 2020 18:13
marcelstoer pushed a commit that referenced this pull request Jun 9, 2020
* clean effects library
* Fix several issues in ws2812 and effects
* Implement working way of calling shift from callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants