-
Notifications
You must be signed in to change notification settings - Fork 74
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
proposal for issue #41 #43
base: master
Are you sure you want to change the base?
Conversation
…x#36. (corbanmailloux#38) * Rename files to suggest the new, unified sketch. Closes corbanmailloux#36. * Update README to explain the deprecated folder.
…d in case of flash)
…d in case of flash)
This is really cool, and I'm impressed with how quickly you created this. If you are happy continuing down this path, I'm loving it. I have a couple quick comments that I've noticed so far:
I'm picturing the flow working like this for each
This makes the To your comment about source files vs. code in the header files, I don't really have a lot of experience in that world. I'm totally happy with the code-in-header style because it keeps things simpler. Finally, I'm not sure how well it would work, but could we make Thank you again for going through the work and setting this up. |
The The transition itself could probably be an effect but I'm not sure how this would work inside the home assistant UI. As far as I've seen you can only select an effect but not specify parameters such as color to transition to. Further I think the design depends on how much the effects should depend on the fastled library. If we don't want the effects to actually depend on fastled then we should probably provide a blend like function in which we could swap the implementation. If the effects will depend on the festled library then we probably won't even need the |
I'm not sure about moving the JSON processing into So an effect would set I think it's a kind of nice abstraction to not let the effects directly update the lights, only the I didn't mean that transitions should be sent from HASS as an effect. I should have clarified. I just meant that I wonder if it would make sense to internally treat it like one. It seems like it could implement the same methods as the current effects. I haven't thought that through yet; just curious. |
I think I understand what you mean. I'll rework it some more when I have time. |
Thanks, @depuits. Let me just reaffirm that I really like this proposal. There will always be things to tweak, so I'm okay with merging this in when we are relatively happy with it and continuing to make future improvements as well. |
simplified IEffect interface
simplified IEffect interface
I've moved the transition logic into its own The |
62ee3ea
to
a17d0f6
Compare
I've been on a holiday break from code for a bit. Now that I'm back, I'll be spending some time this week/weekend reviewing and hopefully merging this in. |
What changes should still be made to merge this code? |
changed debug statements to ifdef to presserve memory
It still needs a lot of cleanup but I wanted to get some feedback if this I'm going in the right for #41.
I think that the interface for the effects doesn't need to be much more complicated but the
ColorState
class should be expanded to allow the effects to communicate with each other and the rest of the program. TheColorState
class should probably encapsulate all led logic in a way that implementing issue #42 would also not affect the effects logic.I'm not sure if separate source files or if all code inside the headers are preferred.
I think I've also found a fix for #34 but it could be improved by encapsulating the transitioning better.