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

feat (driver) implement our own LED driver #141

Merged
merged 9 commits into from
Feb 5, 2023

Conversation

TheRealKasumi
Copy link
Owner

@TheRealKasumi TheRealKasumi commented Feb 3, 2023

closes #140
closes #98
partially closes #134

Its finally here, our own driver for WS2812(B) LEDs. With that we remove the FastLED dependency and potentially a lot of problems which startet when we included it. The performance with the new driver has roughly doubled while the memory consumption was also slightly reduced. The CPU load also reduced drastically since we are using DMA with the I2S hardware. So far it seems perfectly stable but I am still in the process of testing. There might be smaller improvements to the way how pixels are accessed but this is more about... "making it look nicer" while not changing anything functional.

Also note that this potentially seems to close #66. So if we don't encounter this again I would guess we close it in the future. Alright, I guess all this is pretty good news.

@TheRealKasumi TheRealKasumi added enhancement New feature or request hardware Issues related to the hardware build mcu Issues related to the main controll unit labels Feb 3, 2023
@TheRealKasumi TheRealKasumi added this to the 1.1.0 Release milestone Feb 3, 2023
@TheRealKasumi TheRealKasumi self-assigned this Feb 3, 2023
Copy link
Collaborator

@JakobLichterfeld JakobLichterfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, really good :-) Thank you for your extraordinary efforts!

mcu/platformio.ini Show resolved Hide resolved
@TheRealKasumi
Copy link
Owner Author

Tested the current code for 24h now. I assume its stable. So I would say we can merge it after you approved.

Copy link
Collaborator

@JakobLichterfeld JakobLichterfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. I could not test it atm, I need to get another power supply first...

@TheRealKasumi
Copy link
Owner Author

If this happens in the near future we can also wait😋. Having a second tester would be great.

@JakobLichterfeld
Copy link
Collaborator

JakobLichterfeld commented Feb 5, 2023

I need to get

!= I get ... :-)

@TheRealKasumi
Copy link
Owner Author

TheRealKasumi commented Feb 5, 2023

Alright, then I am going for the merge now😜. The new driver is there🥳. Get ready for crashes and bugs.

@TheRealKasumi TheRealKasumi merged commit 4a4c4d0 into main Feb 5, 2023
@TheRealKasumi TheRealKasumi deleted the feat/140-own-led-driver branch February 5, 2023 18:23
TheRealKasumi added a commit that referenced this pull request Mar 31, 2023
* Add from internal repo

* Remove c-style casts

* Fix stale LEDs

* Minor stuff like comments

* Update TesLight.cpp

* Small fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hardware Issues related to the hardware build mcu Issues related to the main controll unit
Projects
None yet
2 participants